Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ready queues. Jobs Suppose we have a multi-level CPU scheduling algorithm that uses two entering the system are place on the first queue which is

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

ready queues. Jobs Suppose we have a multi-level CPU scheduling algorithm that uses two entering the system are place on the first queue which is scheduled using round-robin (RR) with a CPU time quantum of 4 milliseconds (g4). After receiving 2 quantum time units (8 milliseconds total), a job that has not yet finished is placed on the second queue which is scheduled using first-come, first-served (FCFS). Jobs in the second queue receive CPU service only when the first queue is empty. Suppose the following processes arrive at the first queue in the order listed at time 0: CPU burst time (ms) Priority Process Pi P2 Ps P4 Ps 4 (a) (5 points) Draw a Gantt chart showing when each process receives CPU service for this algorithnm Assume no other processes arrive (b) ( 5 points) Give the order that the processes finish for this lgori th (c) (5 points) What is the average waiting time for this set of processes using this algorithm? (d) (5 points) What would be the average waiting time for this set of processes if the shortest-job-first (SJF) CPU scheduling algorithm were used alone? (e) (5 points) What would be the average waiting time for this set of processes if a non-preemptive priority CPU scheduling algorithm were used algne? (Larger number is higher priority.)

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions