Re:Erlang Scheduler Details and Why They Matter
by sbalea on Tuesday February 09, 2016 @11:11PM
(#11070718)
You are absolutely correct, the schedulers never preempt a process in the classical sense, but from an Erlang code perspective, the system behaves as if it would be preemptive. The schedulers are actually running a byte code interpreter and the interpreter will switch processes once a certain number of reductions is reached (or the code yields). This breaks down when running native code in the form of NIFs - it is entirely possible to block a scheduler indefinitely while running native code.
[ Parent
| on HN ]
There are no comments on this comment yet.