Re:Websocketd
by gmfawcett on Saturday January 26, 2019 @10:31AM
(#19006668)
> Erlang processes are threads as seen by the OS
Not true, Erlang processes are userspace threads, not kernel threads. It's an M:N model -- you can run thousands of Erlang processes on a single OS thread. See:
Re:Websocketd
by fulafel on Saturday January 26, 2019 @01:07PM
(#19007478)
Good correction. But for the purpouses of this discussion re the processy-nature of Erlang processes, it's an implementation detail without difference in programming semantics.
Not true, Erlang processes are userspace threads, not kernel threads. It's an M:N model -- you can run thousands of Erlang processes on a single OS thread. See:
http://erlang.org/euc/08/euc_smp.pdf
and note that each "scheduler" runs on a single OS thread, whereas many processes can run on each scheduler.