Deadlock avoidance with a modified banker's algorithm (Q1091127)
From MaRDI portal
| This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use this page instead for the normal view: Deadlock avoidance with a modified banker's algorithm |
scientific article; zbMATH DE number 4009806
| Language | Label | Description | Also known as |
|---|---|---|---|
| English | Deadlock avoidance with a modified banker's algorithm |
scientific article; zbMATH DE number 4009806 |
Statements
Deadlock avoidance with a modified banker's algorithm (English)
0 references
1987
0 references
There are three methods for handling deadlocks in resource allocation systems: deadlock prevention, deadlock avoidance and deadlock detection combined with recovery. Of these three methods deadlock avoidance is preferable in many cases but seldom used on account of its high cost. We present a simple modification of a known deadlock avoidance algorithm, the banker's algorithm, which has a running time \(\theta (mn^ 2)\) in a system consisting of n processes and m different types of resources. Our modified algorithm gives an amortized worst case running time of O(mn) under certain likely conditions and in that way it can be considered a competitive method for handling deadlocks. At worst, our algorithm is twice as fast as banker's algorithm.
0 references
deadlocks in resource allocation systems
0 references
deadlock prevention
0 references
deadlock avoidance
0 references
deadlock detection
0 references
recovery
0 references