Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do question 2 only. 1. Assume that a system has following processes and their arrival and burst times Process Arrival TimeBurst Time P1 P2

image text in transcribed

Please do question 2 only.

1. Assume that a system has following processes and their arrival and burst times Process Arrival TimeBurst Time P1 P2 P3 12 4 4 a) b) c) Draw the Gantt chart and calculate the waiting and turnaround times for each process using a FCFS scheduling algorithm? Draw the Gantt chart and calculate the waiting and turnaround times for each process using a non-preemptive SJF scheduling algorithm? The SJF algorithm is supposed to improve performance, but notice that we usually choose to run process P1 at when it arrived because we did not know that two shorter processes would arrive soon. Compute what the waiting and turnaround times will be if the CPU is left idle for the first 1 unit and then a non-preemptive SJF scheduling is used. Remember that processes P1 is waiting during this idle time, so its waiting time may increase. This algorithm could be called future- knowledge scheduling 2. Assume that a system has following processes, their priority and arrival times: Prior Burst Time Process P1 P2 P3 P4 P5 4 4 The processes are assumed to have arrived in the order P1, P2, P3, P4, PS, aa time 0 a) b) c) d) Draw the Gantt chart and calculate the waiting and turnaround times for each process using a FCFS scheduling algorithm? Draw the Gantt chart and calculate the waiting and turnaround times for each process using a non-preemptive SJF scheduling algorithm? Draw the Gantt chart and calculate the waiting and turnaround times for each process using a non-preemptive priority scheduling algorithm (a larger priority number implies a higher priority? Draw the Gantt chart and calculate the waiting and turnaround times for each process using a RR scheduling algorithm with a quantum of 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago