Re:Performance of green threads and why it matters
by learc83 on Sunday May 08, 2016 @01:22PM
(#11654787)
The OP said processes on dedicated cores, so I guess they meant you should use processes if you need fewer threads than you have available cores.
If that is the case then processes could be faster than OS threads because you'd avoid context switches altogether. However, if your system supports pinning OS threads to processors and you limit the number of threads to the number of available processors, I can't think why that wouldn't be just as good.
If that is the case then processes could be faster than OS threads because you'd avoid context switches altogether. However, if your system supports pinning OS threads to processors and you limit the number of threads to the number of available processors, I can't think why that wouldn't be just as good.