September 2019
Intermediate to advanced
352 pages
8h 3m
English
Topic 35 | Actors and Processes |
Without writers, stories would not be written, Without actors, stories could not be brought to life.
Actors and processes offer interesting ways of implementing concurrency without the burden of synchronizing access to shared memory.
Before we get into them, however, we need to define what we mean. And this is going to sound academic. Never fear, we'll be working through it all in a short while.
An actor is an independent virtual processor with its own local (and private) state. Each actor has a mailbox. When a message appears in the mailbox and the actor is idle, it kicks into life and processes the message. When it finishes processing, it processes another message in the mailbox, or, if the ...
Read now
Unlock full access