How to handle concurrency:
Mechanisms
- Locks
- Semaphores
- Monitors
- Synchronized methods
Methods
- Deadlock avoidance
- Verification
- Simulation
Key:
1) Develop a clear strategy to deal with all concurrency issues during system design.
2) Concurrency must be dealt with during design process as dealing with concurrency after system is implemented is difficult.