4 ms·
Modern language runtimes used in the server space like Go basically multiplex green threads across processes to minimize context switches between concurrent exe
by sfifs 8y ago
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 https://talks.golang.org/2012/concurrency.slide#1