Hacker News new | ask | show | jobs
by whizzter 19 days ago
Right, my point is that C10k solutions basically revolve around M:N threading models where M being OS threads and N userspace threads, so from the view of the OS/Userspace boundary it's cooperative since the OS does nothing for the N userspace threads, only the M.

That the Erlang runtime hides it from the developer, doesn't mean that it isn't cooperative. So yes, for the Erlang programmer it's preemtive but from an OS/C standpoint it's cooperative (Like toast0 mentions in his sibling comment about NIF's exposing the cooperative nature of the runtime to programmers is telling about why it's considered "complicated" and not recommended practice).