Concurrency
Model of Concurrency
A simple concurrent system is:
- two computers in separate rooms
- they are connected by a wire
- they send messages to one another
- the messages are one-way only, no “return” is expected.
Diagram
Everything Else is an Optimization
Every other feature of concurrency is an optimization of this model.
- Memory Sharing
- Timesharing (CPU sharing)
- Multiple Cores.
Premature Optimization
If you forget (ignore) what the basic model is, you will eventually run into trouble (aka accidental complexity).