2 ms·
> Why not just use an OS-level process? OS-level processes are very expensive (and the OS themselves may set quite harsh limits on e.g. the number of processes
by masklinn 15y ago
> Why not just use an OS-level process?
OS-level processes are very expensive (and the OS themselves may set quite harsh limits on e.g. the number of processes you can have[0]) leading to lower flexibility.
Furthermore, process-based IPC tends to be untyped (unless you're willing to pay for the price of serialization and deserialization of higher-level structures).
Finally, the ability to link processes together and react to events (mostly death) of unrelated processes (no SIGCHLD and no SIGHUP) are limited.
[0] it defaults to 532 on a non-server Snow Leopard system, for instance...
- andrewvc 15y agonptl (read, any modern kernel) Linux processes are cheap, they share an implementation with threads in fact. Note that this only means they can be quite cheap, if you dirty a large amount of memory you lose CoW of course.
- masklinn 15y ago> nptl (read, any modern kernel) Linux processes are cheap They're not 300-bytes cheap. They're not you-can-have-a-million-of-them-on-a-desktop-box cheap. Erlang's processes are.