Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#... Operating System 4. In a Resource Allocation Graph, there are three processes A, B, and C and three types of resources R1, R2 and
#... Operating System
4. In a Resource Allocation Graph, there are three processes A, B, and C and three types of resources R1, R2 and R3. Resource R1 has 4 instances, R2 has 3 instances and R3 has 2 instances respectively. Process A holding a resource R1, R2 and requesting for resource R3. Process B holding resources R2 and R3 and requesting for resource R1. Process C holding a resource R2, R3 and requesting for resource R1. (A) Draw the Resource Allocation Graph in the space provided below. (5.5 Marks) (B) Based on the above graph what is the condition of the processes and resources? (1) Tick the correct condition. (0.5 Marks) DEADLOCK NOT DEADLOCK Part D-Writing Program (6 marks) 1. Write a shell script using while loop with if statement to do the following: a) Accept five students name and their marks from the user. b) Display the word HCT, if the marks are evenStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started