I work in a lab and wrote a multi-threaded C ++ 11 computing program using std::thread . Now I have the opportunity to run my program on a server with multiple processors.
Server:
- Starts Ubuntu Server
- It has 40 Intel processors.
I don't know anything about programming with multiple processors. The first idea that comes to my mind is to launch 40 applications and then combine their results. It is possible, but I want to know more about my possibilities.
- If I compile my code on the server using the gcc compiler, will the resulting application use multi-cpu?
- Answer # 1 depends on how I can test it?
Thanks!
c ++ multithreading c ++ 11 cpu cpu-usage
Doctormoisha
source share