Home > OS >  Can use under Linux c write a thread pool, and then the inside of the each thread with a CPU bound?
Can use under Linux c write a thread pool, and then the inside of the each thread with a CPU bound?

Time:10-02

To write a thread pool in c under Linux, and then the inside of the each thread binding with a CPU, but can't write, which is a great god to help me?

CodePudding user response:

Initialize the thread pool is good, is a one-off create multiple threads, and to create a thread for management,
Binding, the only problem is with the CPU can check pthread_attr_setaffinity_np function of use,
The hope can help you,
  • Related