Question
Consider the following set of processes, with the length of the CPU execution time given in milliseconds. The processes are assumed to have arrived in
Consider the following set of processes, with the length of the CPU execution time given
in milliseconds. The processes are assumed to have arrived in the order P1, P2, P3, P4, at
the following times.
Process Arrival Time Execution Time
---------------------------------------------------------------------------------
P1 0 6
P2 1 3
P3 3 4
P4 4 1
(a) Draw CPU grant chart that illustrates the execution of these processes using the FcFS,
SJF with non-preemptive, and SJF with preemptive scheduling, respectively.
(b) Calculate the average waiting time over all processes for FcFS, SJF with non-
preemptive, and SJF with preemptive.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started