
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

The following processes arrive for execution at the times indicated. Use preemptive scheduling for SRTF and RR and base all decisions on the information you have at the time the decision is made. At arrival time, the burst execution time is known and the process is already in the ready queue. Process Arrival Time CPU Burst or Execution Time P1 0.0ms 6ms P2 1.0ms 3ms P3 3.0ms 2ms Draw a Gantt chart using FCFS: (1.5 pts)
| P1 | P2 | P3 | |___________________________________________|_____________________|_______________| 0 1 2 3 4 5 6 7 8 9 10 11 Draw a Gantt chart using SJF (no preemption): (1.5 pts)
| P1 | P3 | P2 | |___________________________________________|______________|______________________| 0 1 2 3 4 5 6 7 8 9 10 11 Draw a Gantt chart using SRTF: (1.5 pts)
| P1 | P2 | P2 | P3 | P1 | |_______|______________|_______|______________|____________________________________| 0 1 2 3 4 5 6 7 8 9 10 11 Draw a Gantt chart using RR with time slice =2: (1.5 pts โ Two possibilities)
| P1 | P2 | P3 | P1 | P2 | P1 | |_______________|______________|______________|______________|_______|______________| | P1 | P2 | P1 | P3 | P2 | P1 | |_______________|______________|______________|______________|_______|______________| 0 1 2 3 4 5 6 7 8 9 10 11
(0.5 pts each)