A Condition based program of operating system using C language
Following set of question- Consider that a system has P resources of same type. These resources are shared by Q processes time to time. All processes request and release the resources one at a time.Generate a solution to demonstrate that, the system is in safe state when following conditions are satisfied.
Conditions:
- Maximum resource need of each process is between 1 and P.
- Summation of all maximum needs is less than P+Q