Question: operating system ( OS ) QUESTION 2 :- Write C code to simulate the Long term scheduler to admit the processes with the following process
operating system (OS)

QUESTION 2 :- Write C code to simulate the Long term scheduler to admit the processes with the following process mix criterion: a. Every PCB should contain two values : PID and type: (CPU Bound: 1, 10 bound: 0) b. The Ready queue should have 30%-40%, 10 bound process. c. On each iteration, one PCB can be allowed to enter into the ready queue if the above criterion is being fulfilled, otherwise it is being held in other list. d. The held PCBs are later (after some specific time interval) again tried to push into ready queue. e. After each admission print the current status of Ready queue. QUESTION 2 :- Write C code to simulate the Long term scheduler to admit the processes with the following process mix criterion: a. Every PCB should contain two values : PID and type: (CPU Bound: 1, 10 bound: 0) b. The Ready queue should have 30%-40%, 10 bound process. c. On each iteration, one PCB can be allowed to enter into the ready queue if the above criterion is being fulfilled, otherwise it is being held in other list. d. The held PCBs are later (after some specific time interval) again tried to push into ready queue. e. After each admission print the current status of Ready queue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
