Discussion
Three processes P, Q and R enter the ready queue simultaneously with the length of the cpu burst given in milliseconds as 20, 10 and 15 respectively. The wailing time for process R in case of shortest job first scheduling is :
Answer: C
The waiting time of R is 10 milliseconds.
Shortest job first runs the process with the shortest burst first. All three arrive together, so the order is Q (10), then R (15), then P (20):
\[ \begin{aligned} Q &: 0 \text{ to } 10 \\ R &: 10 \text{ to } 25 \\ P &: 25 \text{ to } 45 \end{aligned} \]
R waits while Q runs, so its waiting time (printed 'wailing time') is 10 ms. 25 is R's completion time, 15 its own burst, and 20 the burst of P.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development