Andy presented another high paced lecture this week, the theme was Deadlock and Inter-Process Communication. This is a continuation of the Process Management topic from last week.
As a recap:
- Deadlocks: Can occur on any multitasking O/S where a single process is given exclusive access to a file, device or resource. Detailed conditions:
- Mutual Exclusion – One process can hold a resource exclusively
- Hold and Wait – A process can request a new resource over time whilst still holding other resources.
- No pre-emption – resources can only be released by the program that is holding them
- Circular Wait – 2 or more processes waiting for resources held the other processes.