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
Nonamiya [84]
3 years ago
9

Disk requests come in to the disk driver for cylinders 10, 22, 20, 2, 40, 6, and 38, in that order. A seek takes 6 msec per cyli

nder. How much seek time is needed for: (a) First-come, first served (b) Closest cylinder next (c) Elevator algorithm (initially moving upward) In all cases, the arm is initially at cylinder 20.
Mathematics
1 answer:
m_a_m_a [10]3 years ago
3 0

Answer:

a) 876 ms

b) 360 ms

c) 348 ms

Step-by-step explanation:

a) When using the  First-come, first serve order, the starts at the initial cylinder  and is served in the same order as it arrives.

For  First-come, first serve, the order is served from (20), 10, 22, 20, 2, 40, 6, and 38.

Seek time = 10 + 12 + 2+ 18 + 38 + 34 + 32 = 146 cylinder

The request uses 146 cylinders, therefore the seek time = 146 cylinder * 6 ms/cylinder = 876 ms

b) When using the Closest cylinder next the  request starts at the initial cylinder  and is served using the shortest movement from current position.

For Elevator algorithm, the order is served from (20), 20, 22, 10, 6, 2, 38, 40

Seek time = 0 + 2 + 12+ 4 + 4 + 36 + 2 = 60 cylinder

The request uses 146 cylinders, therefore the seek time = 60 cylinder * 6 ms/cylinder = 360 ms

c) When using the Elevator algorithm the  request starts at the initial cylinder and moves upwards, then reverses direction.

For  Closest cylinder next, the order is served from (20), 20, 22, 38, 40, 10, 6, 2

Seek time = 0 + 2 + 16+ 2 + 30 + 4 + 4 = 58 cylinder

The request uses 146 cylinders, therefore the seek time = 58 cylinder * 6 ms/cylinder = 348 msa) When using the  First-come, first serve order, the starts at the initial cylinder  and is served in the same order as it arrives.

For  First-come, first serve, the order is served from (20), 10, 22, 20, 2, 40, 6, and 38.

Seek time = 10 + 12 + 2+ 18 + 38 + 34 + 32 = 146 cylinder

The request uses 146 cylinders, therefore the seek time = 146 cylinder * 6 ms/cylinder = 876 ms

b) When using the Closest cylinder next the  request starts at the initial cylinder  and is served using the shortest movement from current position.

For Elevator algorithm, the order is served from (20), 20, 22, 10, 6, 2, 38, 40

Seek time = 0 + 2 + 12+ 4 + 4 + 36 + 2 = 60 cylinder

The request uses 146 cylinders, therefore the seek time = 60 cylinder * 6 ms/cylinder = 360 ms

c) When using the Elevator algorithm the  request starts at the initial cylinder and moves upwards, then reverses direction.

For  Closest cylinder next, the order is served from (20), 20, 22, 38, 40, 10, 6, 2

Seek time = 0 + 2 + 16+ 2 + 30 + 4 + 4 = 58 cylinder

The request uses 146 cylinders, therefore the seek time = 58 cylinder * 6 ms/cylinder = 348 ms

You might be interested in
PLEASE HELP I WILL GIVE BRAINLIEST!! PLEASE DONT PUT AN ABSURD ANSWER!<br> HURRY!!!
tiny-mole [99]
My answer is A. Hands down A.
5 0
3 years ago
If four of the exterior angles of a convex pentagon measure
MakcuM [25]

Answer:

120 degrees.

Step-by-step explanation:

The 5 exterior angles sum to 360 degrees.

So the 5th exterior angle = 360 - 4(60)

= 360 - 240

= 120 degrees.

3 0
3 years ago
Read 2 more answers
What is the diameter of a circle if the circumference is 11?​
Gennadij [26K]

Answer:

d≈3.5

Step-by-step explanation:

d= C/π =11/π≈3.50141

Brainliest plz

7 0
4 years ago
3x + 40 = 11x -24<br><br> What does x equal?
pogonyaev
First, you would have to do 11x + 3x Since you're combining like terms.

Now your problem is 14x + 40 = -24

Now you would do 40 - -24 which is now 40+24 and equal to 64.

Now you divide 14 by 64 and you get 4.5
4 0
3 years ago
Read 2 more answers
What two numbers has a gcf of 2 and a lcm of 60?​
Monica [59]

GCF - Greatest Common Factor

The numbers with a GCF of 2:

2 & 4, 2 & 8, 26 & 46...

LCM -Least Common Multiple

Numbers with an LCM of 60:

15 & 4, 12 & 5...

Hope it helps! :-)

Answered by

*GraceRosalia*

5 0
3 years ago
Other questions:
  • An elevator starts at the lobby and makes 4 stops. The positive numbers stand for going up, and the negative numbers stand for g
    7·1 answer
  • PLEASE HELP AND SHOW WORK!! i'm terrible, literally terrible at math, just explain it to me, please ? i need both x and y!
    11·1 answer
  • For f (x) = 4x +1 and g(x) = x2 - 5, find (1-3)(x).
    9·1 answer
  • Lesson 8.8: Angle Relationship
    9·1 answer
  • Steve, Elizabeth, and Andy decide to become partners in a janitorial service company. They need $140,000 for the franchise. They
    8·1 answer
  • A pizza parlor offers pizzas with diameters of 8 in, 10 in, and 12 in. find the area of each size pizza. round to the nearest te
    5·1 answer
  • Marvin spent 3.4 hours which is 40% of his time at the recreational center playing ping pong. How long was Marvin at the recreat
    6·2 answers
  • F(x) = 1<br> g(x) = x - 4<br> Can you evaluate (g•f)(0)? Explain why or why not?
    5·2 answers
  • Use substitution to solve this problem <br>m = -2, n = 4, p = 3, q = -8<br>2q - p =?​
    13·1 answer
  • What is the value of x? please help me! <br><br> A. 43<br> B. 62<br> C. 105<br> D. 115
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!