1
Answer

best way to maximize parallelity in multi Threaded program?

roy doron

roy doron

7y
1.4k
1
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)