Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Do exercise 2 not exercise 1 : Consider the processes P 1 to P 5 with the following service times d i , arrival times

Do exercise 2 not exercise 1: Consider the processes P1 to P5 with the following service times di, arrival times ai,
and priorities pi :
A single-processor/single core system is used and the time quantum is 4. Visualise
for the scheduling algorithms below the resulting schedules using a Gantt chart and
calculate the average residence time and the average waiting time:
(a) First Come First Serve (FCFS),
(b) Shortest Job First (SJF),
(c) Shortest Remaining Time First (SRTF),
(d) Round Robin (RR),
(e) Round Robin with priorities (RRprio).
(A note concerning round-robin scheduling: as said on the slides, newly arrived processes
are appended to the tail of the ready queue; furthermore, if a new process (even one
with a higher priority) arrives, another process that has already started its time slice is
allowed to continue.)
In the above example it would theoretically be possible that two processes arrive at the
same time (and then it would not be possible to tell which process came first, e.g., in
case of FCFS). Why can in practise no two processes arrive at the same time (at least
if only single-processor/single core systems are considered)? Hint: Think about what
leads to the "arrival" of a process at an operating system and whether such arrivals can
happen at the same time on a single-processor/single core systemlease
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

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago