Erlang Scheduler

Bengt Kleberg bengt.kleberg@REDACTED
Fri Aug 25 08:24:04 CEST 2006


On 2006-08-25 05:52, lang er wrote:
...deleted
> In Erlang(not smp), If one process is doing some blocking work,  Will 
> the whole Erlang  emulator  be blocked?

No.


> For example, if I use blocking socket, or do some CPU-intensive 
> computing , can Erlang preempt such process? How to deal with this 
> situation?

the emulator uses poll/select to avoid blocking.
moreover, as a special case for file io there are extra threads in the 
emulator. see ''erl +A''.


bengt
-- 
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."



More information about the erlang-questions mailing list