4 ms·
Erlang processes are green threads, not system processes. It is true that they each have their own heap, but the heaps are GC-ed.
by lucian1900 13y ago
Erlang processes are green threads, not system processes. It is true that they each have their own heap, but the heaps are GC-ed.
- nostrademons 13y agoI know that they're green threads. I thought the implementation was that the heap itself is malloc'd from the OS and then freed when the process terminates. Within the heap, of course, it uses GC, but if you set the heap size at process creation > the total memory allocated, then the GC never runs and the heap essentially becomes an arena.