4 ms·
> Erlang code is single threaded. Each Erlang "process" is an isolated, share-nothing single sequence of instructions, and you don't use semaphores, locks, or c
by castell 9y ago
> Erlang code is single threaded. Each Erlang "process" is an isolated, share-nothing single sequence of instructions, and you don't use semaphores, locks, or critical sections in writing Erlang code. The BEAM VM is implemented as a multithreaded process, but this is not exposed to the Erlang code
The same is true for PHP.
No wonder Facebook developed HHVM for PHP and also uses Erlang with WhatsApp and other parts.
- lou1306 9y agoWell, Whatsapp servers have always been Erlang-based (well before the acquisition by Facebook) but your point stands.