Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the following table, assume a system with three processes as follows. Process CPU Burst Arrival Time Priority P1 16 0 3 P2 12 8

Using the following table, assume a system with three processes as follows.

Process

CPU Burst

Arrival Time

Priority

P1

16

0

3

P2

12

8

1

P3

9

18

2

Q1: Draw the Gantt chart and Find the average waiting time for each of the following scheduling algorithms:

  1. FCFS (First come first serve) algorithm.
  2. SJF (Shortest job first non preemptive)
  3. SRT (Shortest remaining time) aka (SJF Preemptive) algorithm.
  4. Priority scheduling algorithm (Preemptive).
  5. RR (Round Robin) algorithms.
  • Assume the Round Robin algorithm with quantum=8 MSc.

Q2: Which algorithm is the optimal CPU scheduling in term of waiting time?

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago