Description: Dynamic resource allocation system design
Objectives and requirements:
The purpose of this design is by writing and debugging a simple simulation system of dynamic allocation of resources, the observation of a deadlock, and adopt the appropriate algorithm, effectively prevent and avoid deadlock. Specific requirements are as follows:
To simulate a banker's algorithm;
When the system is initialized, the system has some resources;
To apply for resources using keyboard input;
If the system is in a safe state after pre-allocation, the resource allocation of the system is modified.
If the system is in an unsafe state after pre-allocation, the prompt cannot satisfy the request.
To Search:
File list (Check if you may need any files):