1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergey [27]
3 years ago
6

Consider the following set of processes, with the length of the CPU burst given in milliseconds:

Mathematics
1 answer:
Degger [83]3 years ago
5 0

Answer:

a) Drawing for grant charts that illustrates execution of the process is in the image attached

b) To find turn around time we use: completion time - arrival time

•Turn around time for FCFS scheduling algorithm will be:

P1 = 2-0= 2

P2= 3-0 = 3

P3 = 11-0 = 11

P4 = 15-0 = 15

P5 = 20-0 = 20

• Turn around time for SJF scheduling algorithm

P1 = 3-0= 3

P2 = 1-0 = 1

P3= 20-0 = 20

P4= 7-0 = 7

P5 = 12-0 = 12

• Turnaround time for non-preemptive algorithm

P1 = 15-0 = 15

P2 = 20-0 = 20

P3 = 8-0 = 8

P4 = 19-0 = 19

P5 = 13 - 0 = 13

• Turnaround time for RR

P1 = 2-0=2

P2= 3-0= 3

P3= 20 - 0 = 20

P4 = 19-0 = 19

P5 = 18-0 = 18

c) To find waiting time we use (turnaround time - burst time)

•Waiting time for FCFS

P1= 2-2 = 0

P2 = 3-1 = 2

P3 = 11-8 = 3

P4 = 15-4 = 11

P5 = 20-5= 15

• Waiting time for SJF

P1= 3-2 = 1

P2 = 1-1 = 0

P3 = 20-8 = 12

P4 = 7-4 = 3

P5 = 12-5 = 7

• Waiting time for non-preemptive

P1= 15-2 = 13

P2 = 20-1 = 19

P3 = 8-8 = 0

P4 = 19-4 = 15

P5 = 13 - 5 = 8

• Waiting time for RR

P1 = 2-2 = 0

P2 = 3-1 = 2

P3 = 20-8 =12

P4 = 13-4= 9

P5= 18-5=13

d) Average waiting time

•'For FCFS

= (0+2+3+11+15)/5

= 31/5

= 6.2milliseconds

•average waiting time For SJF

(1+0+12+3+7)/5

=23/5

= 4.6milliseconds

• Average waiting time For non-preemptive

(13+9+0+15+8)/5

=55/5

=11milliseconds

• average waiting time For RR

(0+2+12+9+13)/5

=7.2milliseconds

Since the SJF algorithm has 4.6milliseconds, it results in the minimum average waiting time.

You might be interested in
How much is a 10% tip on a $25 bill
s344n2d4d5 [400]

Answer:

$2.50.

Step-by-step explanation:

10 percent of 25 is 2.5.

3 0
3 years ago
Read 2 more answers
Movies Plus charges its customers a $10 monthly service fee plus $2 for each movie the customer rents. Movies For Less
Vinvika [58]

Answer:

A

Step-by-step explanation:

10x3=30

15x2=30+10=40

15x3=45 movies for less

7 0
3 years ago
Consider the isosceles triangle below where the side lengths are given in cm:
DiKsa [7]

Answer:

I think is B

because its the one that sounds good

7 0
3 years ago
What is the little t in Torricelli’s law
svp [43]
In its simplest form, Torricelli's law states that water in a tank will escape through a (small) hole in the bottom with the same speed that it would attain falling from the same height to the level of the hole. ... velocity, g is the acceleration due to gravity, and h is the height of the fluid in the container. Hope that helps!
4 0
3 years ago
Stats. can someone help?
artcher [175]

Answer:

you should try picto math it very helpful!

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • Carol bought 12 stickers two thirds of the stickers where dogs how many of the stickers were dogs
    11·2 answers
  • Taylor is baking cookies for her friends. She bakes 75 chocolate chip cookies and 100 peanut butter cookies. If she puts both ty
    11·1 answer
  • 5x + 2y = 7
    12·2 answers
  • Sketch the situation if necessary and use related rates to solve. Two airplanes are flying in the air at the same height. Airpla
    11·1 answer
  • Given f(x)=1/3(4-x)2, what is the value of f(16)
    5·1 answer
  • A satellite moves through space at a rate of 17, 208 kilometers per hour. What is this number in word form?
    8·1 answer
  • P/2 = 6. Find the value of p.<br> ur answer
    14·1 answer
  • My stepsister got stuck in the dryer what do I do??
    8·2 answers
  • Solve please....................
    12·2 answers
  • The weights of a small box of healthy oats are normally distributed with a mean of 8.9 oz and a standard deviation of 0.1 oz. Fi
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!