2 ms·
Yep. If all you have is a blocking sys call and you want performance you gotta have threads. If you want to use more than a single core at a time for computat
by YZF 9y ago
Yep. If all you have is a blocking sys call and you want performance you gotta have threads. If you want to use more than a single core at a time for computation, you gotta have threads. [And I use the word threads loosely, you could have multiple processes as well or whatever OS primitive let's you get concurrency].
A 20 core CPU can do some things 20 times faster than a single core (multiply matrices e.g.). If you're trying to do those things and you limit yourself to a single thread - good luck!