News for hackers. Stuff that matters.
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.
Re:Why not C++? by jcoffland on Saturday March 05, 2016 @03:04PM (#11230808)
This statement misses the point. What I am saying is only use threads to compute things simultaneously and not to perform IO operations simultaneously.
Re:Why not C++? by ape4 on Sunday March 06, 2016 @12:03PM (#11234467)
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.