Question: 1 Find Waiting Time Create an array rem _ bt [ ] to keep track of remaining burst time of processes. This array is initially
Find Waiting Time
Create an array rembt to keep track of remaining burst time of processes. This array is initially a copy of plistbt all processes burst times
Store waiting times of processes in plistwt Initialize this array as
Initialize time : t
Keep traversing the all processes while all processes are not done. Do following for ith process if it is not done yet.
If rembti quantum
i t t quantum
ii btremi quantum;Else Last cycle for this process
i t t btremi;
ii plistiwt t plistibt
ii btremi; This process is over
Find Turn Around Time
Once we have waiting times, we can compute turn around time tat of a process as sum of waiting and burst times, ie plistiwt plistibt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
