Lecture Notes for Operating Systems Concepts

26 October 2004 - Resource Management and Deadlock


Resources

Resource Management

Resource Managers

Resource Models

Resource Characteristics

Resource Counts

Dynamic Resources

Resource Sharing

General Management

Management Refinements

Asynchronous Management

  • Asynchronous resource management provides non-blocking behavior:

  • Synchronous resource management can also provide query functions.

    A Situation

    The Situation

    Deadlock Background

    Deadlock Handling

    Ad Hoc Techniques

    Deadlock Prevention

    Deadlock Conditions

    Preventing Deadlock

    Shared Resources

    Bulk Allocation

    Analysis

  • Bulk allocation is similar to batch-job allocation policies.

  • Bulk allocation is difficult to do in general.

  • Bulk allocation leads to pessamistic allocation requests.

    Ordered Allocation

    Example

    Resource Take-Back

    Deadlock Avoidance

    An Analogy

    Cash On Hand

    The Banker's Algorithm

    Deadlock Detection and Recovery

    System State Model

    Resource Graphs

    Deadlock Recovery


    This page last modified on 14 November 2004.