roy doron

roy doron

  • NA
  • 33
  • 20.4k

best way to maximize parallelity in multi Threaded program?

May 25 2013 6:07 PM
Lets say you have 10 threads, in one function and you want to maximize parallelity between them, what is the best way to do that:
 
1. with 10 mutexes, assign each mutex to a thread?
2. with semaphore (0, 10) ?
3. with array/list of mutexes?
 
What would you do?
 
Thanks,

Answers (1)