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)

operating system (OS) QUESTION 2 :- Write C code to simulate the

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

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 Databases Questions!