Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Five jobs P1, ..., P5 arrive at a processor at time 0, 1, 2, 3, 4 and the lengths of their CPU bursts are 8,

Five jobs P1, ..., P5 arrive at a processor at time 0, 1, 2, 3, 4 and the lengths of their CPU bursts are 8, 3, 5, 1, 4, respectively. Draw the Gantt Chart and calculate the average waiting time and the average response time for the following policies

  • 9.a: SJF (Shortest-Job-First) scheduling policy.
  • 9.b: SRTF (Shortest-Remaining-Time-First) scheduling policy.
  • 9.c: P-PS (Preemptive priority ) scheduling policy with priority assignment (3, 2, 1, 4, 3) to (P1, ..., P5), where priority 1 is the highest priority.
  • 9.d: RR (Round-Robin) scheduling policy with a time quantum of 2.
  • 9.e: MLFQ scheduling policy with simplification. We ignore priority boost and I/O and the detailed policy is as follows: A new job enters Q1 in Round-Robin (RR). When it gains CPU, job receives 1 time unit; If it does not finish in 1 time unit, it is moved to Q2. At Q2, job is again served in RR and receives 2 time units. If it still does not complete, it is preempted and moved to Q3. Run RR in Q3 with quantum size 4.

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

Nested Relations And Complex Objects In Databases Lncs 361

Authors: Serge Abiteboul ,Patrick C. Fischer ,Hans-Jorg Schek

1st Edition

3540511717, 978-3540511717

More Books

Students also viewed these Databases questions

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Explain the procedure for valuation of shares.

Answered: 1 week ago

Question

What is the environment we are trying to create?

Answered: 1 week ago

Question

How can we visually describe our goals?

Answered: 1 week ago