On Friday, 13 July 2018 at 13:15:39 UTC, Steven Schveighoffer
wrote:
But it doesn't scale if you use OS processes, it's too
heavyweight. Of course, it depends on the application. If you
only need 100 concurrent connections, processes might be OK.
I think you may have fallen for Microsoft FUD.
In the Early Days of Windows Microsoft was appalling Bad at
multiple processes....
Rather than fix their OS, they cranked up their Marketing machine
and Hyped threads as "Light Weight Processes".
Unixy land has had "COW" (Copy on Write) page handling for years
and years and process creation and processes are light weight.
There are very very few Good reasons for threads, but threads
being "light weight processes" is definitely not one of them