Kilobyte Processes vs. Megabyte Threads: BEAM's Memory Advantage

BEAM processes are incredibly lightweight, typically requiring only 1-3 kilobytes of memory each, allowing millions to run concurrently on a single machine. In stark contrast, traditional OS threads are heavier, often consuming 1-2 megabytes of stack space per thread, significantly limiting the number of concurrent threads an operating system can manage.

Sources

Open the full topic