[erlang-questions] Binary manipulation

Klaus Trainer klaus.trainer@REDACTED
Sun Mar 13 18:09:47 CET 2011


> "Avoid doing lengthy work in NIF calls as that may degrade the
> responsiveness of the VM. NIFs are called directly by the same
> scheduler
> thread that executed the calling Erlang code. The calling scheduler
> will
> thus be blocked from doing any other work until the NIF returns."
> 
> I presume this just means the calling process cannot do any other work
> until the NIF returns and not that all processes can suffer
> degradation.

No. If you have only one scheduler, it obviously means that no other
process will be executed, because the only scheduler is blocked by your
NIF. If you don't set a different configuration, the number of
schedulers corresponds to the number of available processors.



More information about the erlang-questions mailing list