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
What 2+3+5+6+7+8+9+10=
maks197457 [2]

Answer:

50

Step-by-step explanation:

(2+3=5) +5 = 10

6+7 = 13

8+9=17

10

Then add them all together:

10+13+17+10=50

3 0
2 years ago
Read 2 more answers
Janey paints a block of wood with gold glitter for an art project. The block measures 8 inches by 10 inches by 20 inches. After
goldenfox [79]
160 square inches

if the block is cut after it’s been painted, two sides with the same measurements don’t have glitter on them. you find the area of the one rectangle and multiply it by 2 as follows:
A = length • width
A = 10 • 8 = 80
area that needs to be covered = 80 • 2 = 160 square inches

5 0
2 years ago
Given log3 2=0.631 log3 7=1.771 what is log3 14?
Leni [432]
In logarithm, inverse operations are applied.
log_3{14} =  log_3{7} +   log_3{14} \\ log_3{14} = 0.631 + 1.771 \\log_3{14} = 2.402
5 0
3 years ago
Read 2 more answers
the point (2,3) is in the terminal side of an angle theta, in standard position. what are the values of sine, cosine, and tangen
suter [353]
(2,3) so x=2, y=3 and h=(2^2+3^2)^(1/2)=√13

sina=3/√13, cosa=2/√13, tana=3/2 Afterwards multiply sina and cosa by √13/√13 and get sina=(3√13)/13 and cosa=(2√13)/13
8 0
3 years ago
Is the dolphin deeper than point C or point E?​
Pepsi [2]
Point E is correct answer
7 0
3 years ago
Other questions:
  • You clean a community park for 6.5 hours. You earn $42.25. How much do you earn per hour?
    7·1 answer
  • X/6 - 5 = 13<br><br> What does "x" equal in this equation???
    6·1 answer
  • I NEED THE ANSWER TO THIS QUESTION!!!!!! ITS A 6TH GRADE MATH!!! PLS!!!! THX!!!!! I WILL MARK THE BRAINLIEST!!!!!!!!’
    13·1 answer
  • in planning her​ retirement, liza deposits some money at 1.5 ​% ​interest, with twice as much deposited at 2 ​%. find the amount
    7·1 answer
  • Doesn’t have an option for science but please help
    10·1 answer
  • whats the constant of proportionality of this table? and also write a direct variation equation for the table after you find the
    8·2 answers
  • Which point on the number line best represents the square root of 6
    9·2 answers
  • Eddie's Electric charges $90 per hour plus a $50 traveling fee. Which equation models this scenarlo?​
    11·1 answer
  • A rectangular prism has a base area 56 ft.² and a volume of 840 ft.³ the length of the base is longer than the width if the sum
    15·1 answer
  • The tables represent the functions f(x) and g(x).
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!