Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2 ) (Process Scheduling) The table below lists five jobs, the time that they arrive in the system (when they are created), how long they

Q2 ) (Process Scheduling) The table below lists five jobs, the time that they arrive in the system (when they are created), how long they take to execute, and their priority (higher values correspond to higher priorities). For example, job E arrives at time “50”, requires “20” units of execution time to complete, and has priority “0” which is the highest priority.

Process
Job Arrival Time
Execution Time
Priority
A
10
30
1
B
20
50
5
C
30
10
3
D
40
40
2
E
50
20
0

For all the jobs in each of the following scheduling algorithms, calculate (a) the Start Time, the time at which the job is first scheduled to run (it may have to wait when it arrives), and (b) the End Time, the time when it finishes executing.

i) First come First Serve (FCFS)

Process
Start Time
End Time
A


B


C


D


E


ii) Shortest Job First (SJF)

Process
Start Time
End Time
A


B


C


D


E


iii) Priority Scheduling (p)

Process
Start Time
End Time
A


B


C


D


E


 

Step by Step Solution

3.43 Rating (153 Votes )

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

Elementary Statistics

Authors: Mario F. Triola

12th Edition

0321836960, 978-0321836960

More Books

Students also viewed these Operating System questions

Question

Briefly describe Bacons four Idols. How do the Idols apply today?

Answered: 1 week ago