Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 (Total 10 Points): Process scheduling is one of the most important functions provided by an operating system. Consider the following set of processes,

Problem 1 (Total 10 Points):

Process scheduling is one of the most important functions provided by an operating system. Consider the following set of processes, with the length of the CPU burst given in milliseconds:

Process

Burst Time

Priority Level

P1

3

2

P2

7

1

P3

11

3

The processes are assumed to have arrived in the order P1, P2, and P3 all at time 0

a. (4 Points) Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: First Come First Serve, Shortest Job First, Priority (Note: a small priority number implies a higher priority), and Round Robin (Note: the quantum = 4)

b. (2 Points) What is the turnaround time for each process when Shortest Job First scheduling algorithm is used?

c. (2 points) What is the waiting time for each process when First Come First Serve scheduling algorithm is used?

d. (2 Points) Which of the algorithms results in the minimum average waiting time (over all processes)?

Note: You must show your work for each answer.

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Are they working longer hours? Bringing more work home?

Answered: 1 week ago