Day 1: Messages and Mailboxes
Today weâll see how to create and stop processes, send and receive messages, and detect when a process has terminated.
In Erlang, and therefore Elixir, an actor is called a process. In most environments a process is a heavyweight entity that consumes lots of resources and is expensive to create. An Elixir process, by contrast, is very lightweightâlighter weight even than most systemsâ threads, both in terms of resource consumption and startup cost. Elixir programs typically create thousands of processes without problems and donât normally need to resort to the equivalent of thread ...
Get Seven Concurrency Models in Seven Weeks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.