Home / Expert Answers / Computer Science / 2-consider-a-system-of-processes-and-resources-and-make-the-following-assumptions-the-ready-lis-pa335

(Solved): 2. Consider a system of processes and resources and make the following assumptions: - The Ready Lis ...



student submitted image, transcription available belowstudent submitted image, transcription available belowstudent submitted image, transcription available below
2. Consider a system of processes and resources and make the following assumptions: - The Ready List (RL) has 3 priority levels, 0,1 , and 2 ( 0 being the lowest). - The create function is simplified: create(n) creates a new child process with the priority . The process is placed at the end of the corresponding queue. - Only a single CPU exists. The currently running process continues running until the process: - blocks by requesting an unavailable resource, or - is interrupted by a function timeout(), which moves the process from the head of the current RL queue to the end of the same queue; the process currently at the head of the RL queue starts running - The system has 3 resources, . - At the start, only a single process, described by ??? 0 , exists and is running at priority 2. A) Assume the following sequence of functions is issued (each function is executed by the currently running process). The create function always uses the next available PCB 1, 2, : create(1) create(2) timeout() create(0) timeout() create(2) Determine how many child processes each process has at the end of the above sequence. B) Assume that the above sequence continues as follows: timeout() request(1) timeout() request(2) request(1) timeout() request(2) C) Assume that the currently running process executes destroy(2). Determine: 1. The total number of processes in the system. 2. Which resources are free.


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe