Question

In: Computer Science

1. Processes A, B, C, D, E, and F require service times of 3, 5, 2,...

1. Processes A, B, C, D, E, and F require service times of 3, 5, 2, 5, 3, and 5. Their arrival times are 0, 1, 3, 9, 10, and 12. What is the average turnaround time, waiting time, response time, and throughput when using SRJF, RR (q=2), and MLF (q=22i+1). Show your work.

Solutions

Expert Solution

ANSWER:

Given ,processes A,B,C,D,E,F

we need to find average turn around time,waiting time ,response time and through put.

1) Shortest job first (SJF):It is the scheduling process that select the waiting process with smallest execution time to execute.

Turn around time:It is the interval from time of submission to time of completion i.e finished time -Arrival time.

waiting time: The total time spent by the process in ready waiting for CPU i.e turnaround time-service time.

Response time:The time when a job or process completes i.e process time-Arrival time.

throghput:It is the amount of work completed in a unit of time.

Gantt chart for the above processes are

  

Total process time for A-3

B-10

C-5

D-18

E-13

F-23

Average turn around time is calculated as

3+9+2+9+3+11/6    6.1667   

Average waiting time = 0+4+0+4+0+6/6   2.33

Average response time = (0+4+0+4+0+6)/6 2.33

throught put is calculated as overall efficiency of

CPU   ( 3+5+2+5+3+5)/6   3.866

ii) Round -Robin: Given Quantum =2

  

Response time is calculate as start time-Arrival time

2-0 = 2

3-1 2

5-3 2

9-9=0

11-10=1 ,13-12=1

Gantt chart :

   the average turn around time 3+15+4+13+9+11/6

   9.166

   The average response time =2+2-1 2+0+1.11/6

1.33

Average waiting time 5.33

   Throughput 3.866

iii) MLF (q = : MLF stands for multi level feed back.

Average turn around time = 7+13+2+9+5+10/6

7.66

Average response time =7+14+5+1+15+22/6

10.66

Average waiting time = 4+2+0+4+2+5/6

   2.833

through put =3 .866

If you do not get anything in this solution,please put a comment and i will help you out.

Do not give a downvote instantly.It is a humble request.

If you like my answer,please give an upvote ......Thank you.


Related Solutions

1. Processes A, B, C, D, E, and F require service times of 3, 5, 2,...
1. Processes A, B, C, D, E, and F require service times of 3, 5, 2, 5, 3, and 5. Their arrival times are 0, 1, 3, 9, 10, and 12. What is the average turnaround time, waiting time, response time, and throughput when using SRJF, RR (q=2), and MLF (q=22i+1). Show your work.
(a) (f ∘ g)(3) (b) g(f(2)) (c) g(f(5)) (d) (f ∘ g)(−3) (e) (g ∘ f)(−1) (f) f(g(−1))
(a)    (f ∘ g)(3) (b)    g(f(2)) (c)    g(f(5)) (d)    (f ∘ g)(−3) (e)    (g ∘ f)(−1) (f)    f(g(−1))  
Given the operation times provided: JOB TIMES (minutes) A B C D E F Center 1...
Given the operation times provided: JOB TIMES (minutes) A B C D E F Center 1 20 16 43 60 35 42 Center 2 27 30 51 12 28 24 a. Develop a job sequence that minimizes idle time at the two work centers. The sequence is             (Click to select)  A-B-C-D-E-F  B-A-C-E-F-D  C-A-B-D-E-F  F-E-D-A-B-C  E-F-D-B-C-A  D-C-B-A-E-F  . b. Determine idle time of center 2, assuming no other activities are involved. Idle time             minutes
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula...
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula into each of the cells marked with a ? below 4 Review Problem: Activity-Based Costing 5         6 Data 7     Deluxe Tourist 8 Annual sales in units 2,000 10,000 9 Direct materials per unit $25 $17 10 Direct labor-hours per unit 5 4 11 12 Direct labor rate $12 per DLH 13 14 Estimated 15 Overhead Expected Activity 16 Activities and Activity...
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula...
A B C D E F 1 Chapter 3: Applying Excel 2 3 Enter a formula into each of the cells marked with a ? below 4 Review Problem: Activity-Based Costing 5         6 Data 7     Deluxe Tourist 8 Annual sales in units 2,000 10,000 9 Direct materials per unit $25 $17 10 Direct labor-hours per unit 5 4 11 12 Direct labor rate $12 per DLH 13 14 Estimated 15 Overhead Expected Activity 16 Activities and Activity...
A B C D E F 1 Chapter 8: Applying Excel 2 3 Data 4 Exhibit...
A B C D E F 1 Chapter 8: Applying Excel 2 3 Data 4 Exhibit 8-8: Standard Cost Card 5 Inputs Standard Quantity Standard Price 6 Direct materials 3.0 pounds $4.00 7 Direct labor 0.50 hours $22.00 per hour 8 Variable manufacturing overhead 0.50 hours $6.00 per hour 9 10 Actual results: 11     Actual output 2,090 units 12     Actual variable manufacturing overhead cost $6,174 13    Actual Quantity Actual price 14     Actual direct materials cost 6,115 pounds $3.9 pounds...
Consider the cross: A/a; b/b; C/c; D/d; E/e x A/a; B/b; c/c; D/d; e/e a) what...
Consider the cross: A/a; b/b; C/c; D/d; E/e x A/a; B/b; c/c; D/d; e/e a) what proportion of the progeny will phenotypically resemble the first parent? b) what proportion of the progeny will genotypically resemble neither parent?
Find the cubic equation. F(x)=ax^3+bx^2+cx+d F(-1)=3 F(1)=1 F(2)=6 F(3)=7 What is the value of a,b,c,d
Find the cubic equation. F(x)=ax^3+bx^2+cx+d F(-1)=3 F(1)=1 F(2)=6 F(3)=7 What is the value of a,b,c,d
Find the value of a : b : c : d, if a : b = 2 : 3, b : c = 4 : 5 and c : d = 6 : 7.
Find the value of a : b : c : d, if a : b = 2 : 3, b : c = 4 : 5 and c : d = 6 : 7.
Direction ratio of line joining (2, 3, 4) and (−1, −2, 1), are: A. (−3, −5, −3) B. (−3, 1, −3) C. (−1, −5, −3) D. (−3, −5, 5)
Direction ratio of line joining (2, 3, 4) and (−1, −2, 1), are:A. (−3, −5, −3)B. (−3, 1, −3)C. (−1, −5, −3)D. (−3, −5, 5)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT