Assuming following table of process:
PID | Arrival Time | CPU Running Time |
1 | 0 | 2 |
2 | 1 | 6 |
3 | 4 | 1 |
4 | 7 | 4 |
5 | 8 | 3 |
(a) Draw a Gantt chart for processes execution under each one FIFO, SRTF, and RR(q=2) algorithms.
(b) Repeat part (a) assuming that context switch takes 1 time unit.
(c) Calculate turn around time and waiting time for both part (a) and (b)
Solved 1 Answer
See More Answers for FREE
Enhance your learning with StudyX
Receive support from our dedicated community users and experts
See up to 20 answers per week for free
Experience reliable customer service
Ans of a and c: ๒ ñבmSRTFDate:Scanned withCamscanner timeslot q=2que: \quad P_{1}\left|P_{2}\right| P_{3}\left|P_{4}\right| P_{5}\frac{\left.p_{1}\right|_{46}}{2} \quad P_{1} completedque: Date:que: \quadque: \quad P_{2}\left(P_{4} \mid P_{5}\right.que: \quad 0245+91113que: \quad Ans of b: SRTF (If Context switch I) Date:here \delta= switch Time =1 UnitFIFO (If Context switch I)R R (If Context switch 2)Scanned withCamScanner ...