Question: Question I: Scheduling Problem [ 5 0 pts ] Consider the following set of processes, with their arrival times, CPU - burst lengths, and priorities.

Question I: Scheduling Problem [50 pts]
Consider the following set of processes, with their arrival times, CPU-burst lengths, and priorities.
\begin{tabular}{|l|l|l|l|}
\hline Process & Arrival Time & Burst Time & \begin{tabular}{l}
Priority (Lower \\
Number =Higher \\
Priority)
\end{tabular}\\
\hline P1 & 0 & 8 & 2\\
\hline P2 & 1 & 4 & 1\\
\hline P3 & 2 & 9 & 4\\
\hline P4 & 3 & 5 & 3\\
\hline
\end{tabular}
Draw the Gantt chart and compute the average waiting time for the following scheduling algorithms:
a) First Come First Served (FCFS)
b) Non preemptive Shortest Job First (SJF)
c) Preemptive Shortest Job First (SJF)
d) Non preemptive Priority scheduling where 1 is the highest priority
e) Preemptive Priority scheduling where 1 is the highest priority
\begin{tabular}{|l|l|l|l|l|l|}
\hline Waiting time & P1 & P2 & P3 & P4 & Average \\
\hline a. FCFS & & & & & \\
\hline b. Non preemptive. SJF & & & & & \\
\hline c. Preemptive. SJF & & & & & \\
\hline \begin{tabular}{l}
d. Non \\
Priority preemptive
\end{tabular} & & & & & \\
\hline e. Preemptive Priority & & & & & \\
\hline
\end{tabular}
Question I: Scheduling Problem [ 5 0 pts ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!