Deadlock

Reusable Resource

A reusable resource is one that can be safely used by only one process at a time and is not depleted by that use.

Example of Reusable resources

Examples of reusable resources include processors, I/O channels, main and secondary memory, devices, and data structures such as files, databases, and semaphores.

Example of deadlock

This following order results in a deadlock:

  • Deadlock occurs if each process holds one resource and requests the other (in case only one resource element exists)