Re:Why not C++?
by ape4 on Saturday March 05, 2016 @02:43PM
(#11230710)
The obvious reason to use threads... so you can do multiple things simultaneously.
[ Parent
| on HN ]
This statement misses the point. What I am saying is only use threads to compute things simultaneously and not to perform IO operations simultaneously.
I understand what you saying but its too strict. Say the things you want to compute simultaneously involve IO. For example your application has a window that displays a log by watching for writes to the end of a log file (like tail). This is easy and reasonable to do in a thread.