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
The population of bacteria in a culture doubles every 14 hours. How long will it take for
Snezhnost [94]

Answer:  22 hours 11 minutes

<u>Step-by-step explanation:</u>

P=P_o\cdot e^{(kt)}\\\\\text{Since the initial population is doubled in 14 hours, then:}\\2P_o=P_o\cdot e^{k\cdot 14}\\2=e^{14k}\\ln\ 2=ln\ e^{14k}\\ln\ 2=14k\\\\\dfrac{ln\ 2}{14}=k\\\\0.0495=k\\\\\\\text{Now that the k-value has been determined, we can find the time when the}\\\text{population is tripled:}\\3P_o=P_o\cdot e^{0.0495t}\\3=e^{0.0495t}\\ln\ 3=ln\ e^{0.0495t}\\ln\ 3=0.0495t\\\\\dfrac{ln\ 3}{0.0495}=5\\\\22.19=t\\\\22\ hrs +0.19\ hrs

22\ hours + \bigg[\dfrac{19}{100}=\dfrac{x}{60}\bigg]\\\\22\ hours + 11\ minutes

4 0
3 years ago
11+(8-x)²-20 evaluate the expression for x=3
Oksana_A [137]
46 because 8-3 equals 5 then 5 times 5 equals 25 to then add 11 to finally subtract 66-20 which equals 46
6 0
3 years ago
Read 2 more answers
As part of an Earth Science project, Erin tracked the amount of rain fall for 4 weeks. She started tracking after finding some i
Galina-37 [17]
A "The amount of rainfall in week 0" zero weeks have passed and theres already up to the 3 mark
5 0
3 years ago
Read 2 more answers
560/80=56 tens / 8 tens =
vlabodo [156]
10

56 x 10 = 560
8 x 10 = 80
4 0
2 years ago
Read 2 more answers
HELP PLEASE❤️MUCH APPRECIATION!
GalinKa [24]

Answer:

The answer is A.

If you look at the x values of the coordinates, you can see that they multiply by 2 when dilated to the next shape.

M (5,0) ---> M' (10,0)   5 to 10 means a scale factor of 2. So A is your answer.

4 0
3 years ago
Other questions:
  • Goal: Find a reasonable domain and range for each function.
    9·1 answer
  • HOW do you do this? (#13)
    6·1 answer
  • 1.) The length of the missing side is? <br><br> 2.) What is the length of the missing side?
    15·2 answers
  • The triangles are similar. What is the value of x.​
    6·1 answer
  • Given y=2x+8, determine the value of y when x=3
    8·2 answers
  • 17.343 divided by 36.9
    5·1 answer
  • What is the factorization of the trinomial below?
    15·1 answer
  • At a football game, 73% of people attending were supporting the home team, while 27% were supporting the visiting team. If 2628
    14·2 answers
  • Please answer <br> ( will give brainlst)
    11·1 answer
  • What is the correct answer?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!