best way to maximize parallelity in multi Threaded program?
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,