OS-(II) Assignment 1: Banker’s Algorithm

Slot 1.

I) Add the following functionalities in your program
    a) Accept Available
    b) Display Allocation, Max
    c) Display the contents of need matrix
    d) Display Available


Slot 2.

I) Modify above program so as to include the following:
    a) Accept Request for a process
    b) Resource request algorithm
    c) Safety algorithm
Consider a system with ‘n’ processes and ‘m’ resource types. Accept number of instances for every resource type. For each process accept the allocation and maximum requirement matrices. Write a program to display the contents of need matrix and to check if the given request of a process can be granted immediately or not.

0 Comments:

Post a Comment