Process and Mailbox
An actor in Hamler/Erlang is defined as a process, which works like an OS process. Each process has its own memory, composed of a mailbox, a heap, a stack and a process control block(PCB) with information about the process.
Processes in Erlang are very lightweight. We can create millions of processes on a running Erlang virtual machine.
A process is identified by a Pid. Other processes can send messages to a process via Pid.
当前内容版权归 hamler-lang 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 hamler-lang .