Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 0 0 marks Given the MLFQ scheduling rules, process information and queue information below, fill in the blanks of Scheduling result table. ( 1

100 marks
Given the MLFQ scheduling rules, process information and queue information below, fill in the blanks
of Scheduling result table.
(1) Rules
Rule 1: If Priority(A)> Priority(B), A runs (B doesn't).
Rule 2: If Priority(A)= Priority(B), A & B run in round-robin fashion using the time
slice (quantum length) of the given queue.
Rule 3: When a job enters the system, it is placed at the highest priority (the topmost
queue). For the jobs arriving at the same time, schedule the job with smallest pid first.
Rule 4: Once a job uses up its time allotment at a given level (regardless of how many
times it has given up the CPU), its priority is reduced (ie., it moves down one queue
and will be at the tail of the target queue, which means it will be scheduled last).
Rule 5: After some time period S, move all the jobs in the system to the topmost queue,
and sort all the jobs by pid. The job with the largest pid will be scheduled first.
Note: Sorting will happen every time it amives the Period S.
(2) Process information
ProcessNum 6
pidnum:53, anival_time: 10, execution_time: 130
pidnum:165, arrival_time: 10, execution_time: 125
pidnum:472, anival_time: 80, execution_time: 128
pidnum:305, anival_time: 90, execution_time 90
pidnum:235, arrival_time: 175, execution_time: 85
pidnum:366, arrival_time:445, execution_time: 80
(3) Queue information
QueueNum 3
Period_S 400
Time_Slice_Q310 Allotmenttime_Q330
Time_Slice_Q250 Allotmenttime_Q2100
Time_Slice_Q160 Allotmenttime_Q1120
Scheduling result table:
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions