The actor model is a computational model of concurrency where an actor is the computational primitive. In response to messages sent by other actors, the actor can: make local decisions, create more actors, send more messages, determine how to respond to the next message. They can manage their own private state, and can affect other actors only by sending a message.1
This exercise deals with a machine that gives out consecutive numbers. The reference implementation (Elixir) teaches:
- How to start a process.
- How to send a message to a process.
- How to receive a message.
Track | Exercise | Changes |
---|---|---|
Elixir | processes | None |
[1] Actor model, Wikipedia. (2020). https://en.wikipedia.org/w/index.php?title=Actor_model&oldid=939106706 (accessed February 29, 2020).