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
Determine the correct equation for the following verbal sentence: The total distance traveled, d, at a constant speed of 45 mile
lidiya [134]
D=45h
It looks like that is option B
6 0
3 years ago
Read 2 more answers
chris runs 2.3 miles every day of the week, except sunday. on sunday he only runs 2 miles. how many miles will he run in 2 weeks
Ludmilka [50]

Answer:

He will run 31.6 miles in two weeks.

Step-by-step explanation:

6 days a week = 2.3 miles

6 days · 2 weeks = 12 days total running 2.3 miles

1 day a week = 2 miles

1 day · 2 weeks = 2 days total running 2 miles

(12 · 2.3) + (2 · 2)

27.6 + 4

31.6 miles

7 0
3 years ago
Tiffany wants to make 6 batches of cookies. She will need 2 cups of sugar for each
Readme [11.4K]

Answer:12 cups of sugar

Step-by-step explanation:

There is 6 batches each batch has two cups you would do 6x2 for 12 cups.

7 0
3 years ago
For what value(s) of k is the trinomial x² + kx - 24 factorable?
Elza [17]

Answer:

.......................

4 0
3 years ago
Ted is saving for a toy. He has no money now, but
sweet-ann [11.9K]

Answer:

4D - 1

Step-by-step explanation:

So, if Ted saves $D for 4 weeks, then this amount will be equal to 4D because multiplication is simply repeated addition. We can imagine this situation as D+D+D+D, for the 4 weeks he is saving. We can simplify this to 4D in the expression.

Next, the question tells us that this will be 1 dollar more than needed. So, if we want to find the cost, we need to subtract that dollar.

Thus, the final expression is 4D - 1 because this represents 1 dollar less than the money he saves for 4 weeks.

6 0
2 years ago
Other questions:
  • Can someone help me with this ​
    7·1 answer
  • There are ten kids in a class. When any two meet, each says “hi” to the other and the answer “hi” follows. Before the class star
    8·2 answers
  • HHEEELLLPPPP MMMMMEEEEEEEEEE <br><br><br>Solve for x. 2/5x=6/5 12/25 12/5 3 6
    5·1 answer
  • Select the polynomial that is a perfect square trinomial. A. 49x^2 - 8x + 16 B. 4a^2 - 10a + 25 C. 25b^2 - 5b + 10 D. 16x^2 - 8x
    15·1 answer
  • D
    8·1 answer
  •   Two​ trains, Train A and Train​ B, weigh a total of 207 tons. Train A is heavier than Train B. The difference of their weights
    13·1 answer
  • Please help, and i will mark you BRAINLIEST
    8·1 answer
  • F(-3) if f(x) = - 4x – 4
    12·2 answers
  • Consider the triangle below.
    5·1 answer
  • Pls help i need this asap
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!