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
Working simultaneously, four fudge machines complete a big order in 32 hours. All the machines at the fudge factory work at the
Alinara [238K]

Answer:

4 Hours

Step-by-step explanation:

Let's say that the rate of the machines 1/x, because every time they complete an order, it takes them x hours. To find x, we have to add the the rates of the individual machines, which would equal the rate of the machines working together. We know that there are four machines working together at the same rate, and it took them 32 hours.

So:

1/x + 1/x + 1/x + 1/x = 1/32

1/4x = 1/32

4x = 32

x = 8

Thus, the rate of the machines is 1/8.

Now we have to find the time of the order with only half of the machines working together. This time, we don't know the combined rate, so I'll substitute it for y.

1/8 + 1/8 = 1/y

1/4 = 1/y

y = 4

The time taken to complete it is 4 hours.  

3 0
3 years ago
Read 2 more answers
Question 2 please help me
Rudiy27

Answer:

D. 0.682

Step-by-step explanation:

3 0
3 years ago
What is the area of the lateral surface of the following cylinder? 175.84 in. 2 28 in. 2 87.92 in. 2 43.96 in. 2
dem82 [27]

Answer:

87.92in.2

Step-by-step explanation:

7 0
3 years ago
16. Joe has 5 sports cards. He bought 3 packs with
faust18 [17]

We can write an equation like; 5 + 3x = 35

Steps to solve:

5 - 5 + 3x = 35 - 5

3x = 30

3x/3 = 30/3

x = 10

There were 10 cards per pack.

Best of Luck!

3 0
3 years ago
Which ordered pair is the solution?
IrinaVladis [17]
The answer is D neither because its 
(3,2)
Hope this helps
5 0
3 years ago
Other questions:
  • Mr. Design is covering rectangular pieces of plywood with fabric to create a wall hanging. Each piece has an area if 12 3/4 squa
    13·2 answers
  • which explains the correct way to move the decimal point to find the quotient in the problem 12.46 divided by 100? My choices ar
    13·1 answer
  • If r is a linear function with the slope that is not equal to zero which of the following is always true of its inverse function
    8·1 answer
  • Susan has been on a bowling team for 14 years. After examining all of her scores over that period of time, she finds that they f
    5·1 answer
  • 1 over 3 times 9.......
    14·2 answers
  • The results of the survey are shown in the table. If a student registered early, find the probability that the student is a unde
    7·2 answers
  • Samantha had 11/12 of a cup of sugar. She used 5/12 of a cup of sugar to bake muffins. How much sugar, in cups, does Samantha ha
    10·1 answer
  • A circular plate has circumference 33.3 inches. What is the area of this plate? Use 3.14 for pi
    11·1 answer
  • Identify each x-value at which the slope of the tangent line to the function f(x) = 0.2x^2 + 5x − 12 belongs to the interval (-1
    12·2 answers
  • The answer to the problem
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!