Re:OpenBSD, C, httpd and SQLite – Web App stack
by sfifs on Saturday June 09, 2018 @10:08PM
(#17276049)
Modern language runtimes used in the server space like Go basically multiplex green threads across processes to minimize context switches between concurrent execution paths. By leveraging the fact that I/O is much slower than processor ops and switching green threads on I/O without necessarily always switching OS process, they easily scale to hundreds of thousands of concurrent requests. I don't really know about Erlang's model but it also has green threads. There's a reason why high traffic sites use languages like these.
https://talks.golang.org/2012/concurrency.slide#1