Question: A computer system uses a first arrival dispatch algorithm on the job queue. This means first come first served (like waiting in a supermarket line)..

A computer system uses a first arrival dispatch algorithm on the job queue. This means first come first served (like waiting in a supermarket line).. If two jobs arrive at the same time, the job with the lowest number is severd first. Onced a job is started it cannot be interrupted. With a job completes, the next job in line is selected.

Job 1: arrives at time 0 and needs 500 milliseconds to complete.

Job 2: arrives at time 300 milliseconds and needs 400 milliseconds to complete.

Job 3: arrives at time 400 milliseconds and needs 200 milliseconds to complete.

Job 4: arrives at time 400 milliseconds and needs 500 milliseconds to complete.

a) Fill the out timeline table and calculate the waiting time. Each box is 100 ms in duration. Enter (W)ait or (R)unning.

Time(ms) 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500
J1
J2
J3
J4

W = Wait State

R = Running State

Job 1 500 milliseconds to complete _________milliseconds waiting

Job 2 400 milliseconds to complete _________milliseconds waiting

Job 3 200 milliseconds to complete _________milliseconds waiting

Job 4 500 milliseconds to complete _________milliseconds waiting

b) Calculate the average wait time. (Hint: average the number milliseconds each job was in a wait state)

c) Calculate the average turn-around-time (Hint: for each job, count the number of miliseconds from arrival to completion and average)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!