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
What interest will u pay on a 2,200 loan for 1 year if the interest is 12%
IrinaK [193]

Answer:

Total Interest: 145.61

Step-by-step explanation:

6 0
3 years ago
If two opposite sides of a square are increased by 15 meters and the other sides are decreased by 5 meters, the area of the rect
ZanzabumX [31]
<span>Let y= original side So A = LW 60 = (y+15)(y-13) (y+15)(y-13) = 60 y^2 + 2y - 195 = 60 y^2 + 2y- 195 - 60 = 0 y = -17 or y= 15 Toss out the negative solution to get y= 15 as the only solution. So the square has a side length of 15 meters. The area of this square is 15^2 = 15*15 = 225 square meters.</span>
4 0
3 years ago
You estimate that your friend is 50 inches tall. That actual height of your friend is 54 inches. Find the percent error.
exis [7]
Answer: -7.408%

Explanation: The formula for percent error is:
(experimental - theoretical) / theoretical * 100. The experimental value is 50, or your guess. The theoretical value is 54, or the actual value. The theoretical value is the value it should be.

(50-54)/54 = -.074 * 100 = -7.408%
8 0
3 years ago
(1) What are the zeros of the graph below?
Kitty [74]
Jeez don’t know what to say don’t understand
6 0
2 years ago
My friend needs help again
ICE Princess25 [194]

Answer:

  • 3/2
  • 2/3
  • 3/4

these numbers are limited and you can make sure using a calculator

6 0
3 years ago
Other questions:
  • 5 friends divide 3 bags of apples equally between them. write the division represented in this situation as a fraction.
    5·1 answer
  • What is the slope of the line?
    14·1 answer
  • A dice cube has 6 sides that are numbered 1 to 6. If the cube is thrown once, what is the probability of rolling an odd number?
    11·1 answer
  • Please help
    8·1 answer
  • Please help!
    11·1 answer
  • Provide two examples of real world combinations, one in which repetition isn't allowed and one in which repetition is.
    12·1 answer
  • Free brainiest if you guess correct do I like dogs or cats no copying
    8·1 answer
  • WILL MAKE BRAINLIEST <br><br> write the slope intercept form of the equation of each line
    5·1 answer
  • You and your family went to a restaurant. The bill was $74, and you want to leave a 22% tip. What was the tip?
    5·2 answers
  • When 7/11 is written as a decimal, what is the sum of the first 20 digits after the decimal point? Pls Help
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!