3 ms·
Who creates threads just for fun ? I only use them when I really need them (in C++), so there's really no alternative for me
by ttoinou 9y ago
Who creates threads just for fun ?
I only use them when I really need them (in C++), so there's really no alternative for me
- YZF 9y agoYep. 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!