Resources

A resource is anything that must be acquired, used and released over the course of time. Resources are of two types:


In general deadlocks involve nonpreemptable resources. Potential deadlocks that involve preemptable resources can usually be resolved by reallocating the resources from one process to another.
Sequence of events required to use a resource:

Resource Acquisition

Source Code

External Links

Homework

  1. Study lectures!