Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32190

best way to maximize parallelity in multi Threaded program?

$
0
0
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,

Viewing all articles
Browse latest Browse all 32190

Trending Articles