The idea is that you push computationally intense work (i.e. what you might actually want threads for) to another process and possibly even another machine or set of machines instead of bogging down your web server. This is pretty good practice even on a web platform that does let you spin up threads (e.g. ASP.NET)
If you actually need threads and really really want this work in your web server process, you can write a C or C++ module for that particular piece.
So just to get the request/response loop going due to being blocked by some CPU intensive function execution, I'm supposed to fork another process? Madness.
0
u/[deleted] Apr 27 '16
[deleted]