Chapter 3. Processes 101

This chapter covers

  • The Actor concurrency model
  • Creating processes
  • How to send and receive messages using processes
  • Achieving concurrency using processes
  • How to make processes communicate with each other

The concept of Elixir processes is one of the most important to understand, and it rightly deserves its own chapter. Processes are the fundamental units of concurrency in Elixir. In fact, the Erlang VM supports up to 134 million (!) processes,[1] which would cause all of your CPUs to happily light up. (I always get a warm, fuzzy feeling when I know I’m getting my money’s worth from my hardware.) The processes created by the Erlang VM are independent of the operating system; they’re lighter weight and take mere microseconds ...

Get The Little Elixir & OTP Guidebook 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.