Skip to main content
Log in

Deadlock avoidance with a modified banker's algorithm

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

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 Θ(mn 2) in a system consisting ofn processes andm different types of resources. Our modified algorithm gives an amortized worst case running time ofO(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 the banker's algorithm.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. E. W. Dijkstra,Cooperating sequential processes, Technical Report EWD-123, Technological University, Eindhoven, The Netherlands, 1965.

    Google Scholar 

  2. A. N. Haberman,Prevention of system deadlocks, Communication of the ACM, Vol. 12, No. 7, July 1969, pp. 373–385.

    Google Scholar 

  3. T. Kameda,Testing deadlock-freedom of computer systems, Journal of the ACM, Vol. 27, No. 2, April 1980, pp. 270–280.

    Google Scholar 

  4. J. Peterson and A. Silberschatz,Operating System Concepts, Second Edition, Addison-Wesley, 1985.

Download references

Author information

Authors and Affiliations

Authors

Additional information

This work was partly supported by The National Swedish Board for Technical Development (STUF) under contract number 85-3127.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Belik, F. Deadlock avoidance with a modified banker's algorithm. BIT 27, 290–305 (1987). https://doi.org/10.1007/BF01933724

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01933724

CR categories

Keywords and phrases

Navigation