system calls and threading question

Yariv Sadan yarivvv@REDACTED
Tue May 30 15:37:52 CEST 2006


>   os:cmd does not make system calls itself; it creates a port, so the
> system call is invoked in a separate os thread (that is, outside the
> erlang runtime).
>
> Regards
> --
>         Samuel
>

Thanks for the response. That's what I expected, but I wanted to make sure :)

By the way, is this how *all* native calls are handled, even
"lightweight" ones such as erlang:date(), or are only potentially
expensive calls handled in a different system thread?

Regards,
Yariv



More information about the erlang-questions mailing list