Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 a. Draw the Gantt chart and calculate the waiting and turnaround times for each process using a FCFS scheduling algorithm. b. Draw the Gantt

image text in transcribed

1 a. Draw the Gantt chart and calculate the waiting and turnaround times for each process using a FCFS scheduling algorithm.

b. Draw the Gantt chart and calculate the waiting and turnaround times for each process using a SJD scheduling algorithm.

c. The SIF 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. Computer what the waiting and turnaround times will be if the CPU left is left idle for the first 1 unit and then SJF scheduling is used. Remember that processes P1 and P2 are waiting during this idle time, so their waiting time may increase. This algorithm could be called future-knowledge scheduling.

1. Assume that a system has following processes and their arrival and burst times: Process Arrival Time Burst Time P1 P2 P3 12 4 4 7 a) b) a) 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 SJF scheduling algorithm? The SIF algorithm is supposed to improve performance, but notice that we usually choose to arrive soon. Compute what the waiting and turnaround times will be if the CPU is left idle for the first 1 unit and then SJF scheduling is used. Remember that processes Pi and P2 are waiting during this idle time, so their waiting time may increase. This algorithm could be alled future-knowledge scheduling

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

Step: 3

blur-text-image

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions