Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a system with two running processes where we do not know what their CPU bursts will look like in advance. Since we do not

Consider a system with two running processes where we do not know what their CPU bursts will look like in advance. Since we do not know the bursts in advance, we must use a live algorithm: Shortest Job First Live (SJFL). In SJFL, we compute an estimated burst time (written image text in transcribed) based on the previous real burst time (written t) and a previous image text in transcribed. The formula is : image text in transcribed n + 1 = t n + ( 1 ) n. That is, for the image text in transcribed in some time-step (aka tick) n+1 , we take the sum of tau from the previous tick multiplied by a constant and the actual run-time in that tick. Given that we have a set of image text in transcribed values that correspond to how long we think a process will want to run, we can run SJF on the estimates to decide in what order to run the processes prior to knowing their exact burst length. (Note that ticks do not represent time! They represent some like a round where each process gets to run its next burst.)

Assume we are modeling a system with two processes: Process 0: image text in transcribed 0 = 10 , = .5 Process 1: image text in transcribed 0 = 10 , = .5

The data for the two processes has been entered into the table below. Note that tau has already been filled into the table, as well as the first two rows. Complete the rest of the table to determine the order within each time-step that the scheduler would execute the two processes:

Tick P0: image text in transcribed P0: t P1: image text in transcribed P1: t SJF Order SJFL Order SJFL WT SJFL TT
0 10 6 10 13 P0, P1 P0, P1 0+6=6 6+19=25
1 8 4 11.5 13 P0, P1 P0, P1 0+4=4 4+17=21
2 6 13
3 4 13
4 13 6
5 13 4
6 13 6
7 13 4
Totals:

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

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

Understand how arbitrators are credentialed and selected

Answered: 1 week ago