阅读背景:

如何使用C中的pthreads减少线程完成时屏障的数量

来源:互联网 

I have a function: createrWorkerPool which will spawn "n" worker threads and each of them will take input as file specified in the args for pthread_create, read the file modify a shared variable by using a mutex around it and wait at a barrier until all threads have done modifying their shared variable. This operation happens in a loop a large number of times.I have a function: createrWorkerPool which will




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: