Question: a ) ( 1 0 points ) Consider a system of processes and resources and make the following assumptions: The Ready List ( RL )

a)(10 points) 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 n.
The process is placed at the end of the corresponding RL queue.
Only a single CPU exists. The currently running process continues running until the process:
o blocks by requesting an unavailable resource, or
o 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, 0,1,2.
At the start, only a single process, described by PCB 0, exists and is running at priority 2.
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,3,dots :
create (2)
create (1)
timeout() Pl
A. request (1)P1
timeout ()-PD
request(2)
7.) request(1) blocked
request(2)-p1 blocked
timeout()-82
create(1)
I. Determine how many child processes each process has, and what processes are blocked at
the end of the above sequence. Show or mention the name of each child process and the
RCBO
resource the process is blocked on.E.g.PCB2 has children 1,2 and PCBO is blocked on
po has 2 children (1:2),P2 has child P3
Po.PI are blocked
PCBDis blocked onRCB
PCBI is blocked onRCB2
x10
can someone help me understand this ?
a ) ( 1 0 points ) Consider a system of processes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!