Deprecated: $wgMWOAuthSharedUserIDs=false is deprecated, set $wgMWOAuthSharedUserIDs=true, $wgMWOAuthSharedUserSource='local' instead [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/w/includes/HookContainer/HookContainer.php at line 135] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
Deadlock avoidance with a modified banker's algorithm - MaRDI portal

Deadlock avoidance with a modified banker's algorithm (Q1091127)

From MaRDI portal





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
    0 references
    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

    Identifiers