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
A piston rises to 5 cm and falls to 3 cm in such a way that it returns to the maximal height three times every two seconds. If w
sveticcg [70]

Answer:

(1 cm)cos3πt

Step-by-step explanation:

Since the piston starts at its maximal height and returns to its maximal height three times evert 2 seconds, it is modelled by a cosine functions, since a cosine function starts at its maximum point. So, its height h = Acos2πft

where A = amplitude of the oscillation and f = frequency of oscillation and t = time of propagation of oscillation.

Now, since the piston rises in such a way that it returns to the maximal height three times every two seconds, its frequency, f = number of oscillations/time taken for oscillation where number of oscillations = 3 and time taken for oscillations  = 2 s

So, f = 3/2 s =1.5 /s = 1.5 Hz

Also, since the the piston moves between 3 cm and 5 cm, the distance between its maximum displacement(crest) of 5 cm and minimum displacement(trough) of 3 cm is H = 5 cm - 3 cm = 2 cm. So its amplitude, A = H/2 = 2 cm/2 = 1 cm

h = Acos2πft

= (1 cm)cos2π(1.5Hz)t

= (1 cm)cos3πt

7 0
3 years ago
Which of the following quartic functions has x=-1 and x=-2 as its only two real zeros
Brums [2.3K]
Quartic is 4th degree
the factors of an equation with roots r1,r2 is
(x-r1)(x-r2)
4th degree
it could be
(x-r1)¹(x-r2)³ or
(x-r1)²(x-r2)² or
(x-r1)³(x-r2)¹


roots or zeroes at x=-1 and x=-2
(x-(-1)) and (x-(-2))
(x+1) and (x+2)

the function could be factored into
(x+1)¹(x+2)³ or
(x+1)²(x+2)² or
(x+1)³(x+2)¹

expanded would be
x⁴+7x³+18x²+20x+9 or
x⁴+6x³+13x²+12x+4 or
x⁴+5x³+9x²+7x+2
one of those is the answer

4 0
3 years ago
Find the equivalent fraction for 10/20
dezoksy [38]
\frac{10}{20} =  \frac{ \frac{10}{10} }{ \frac{20}{10} } =  \frac{1}{2}
6 0
3 years ago
Anyone, please help I really need to know ?
wel
I don’t know how to explain but I can work out the correct ans
To find how much is needed for one person
280/4=70
For 10 person:70*10=700
6 0
3 years ago
Whats the answer to this middle school math problem
Andreas93 [3]

Answer:

k < 50$

Step-by-step explanation:

She wants the keyboard for less than 50$, so the price, k, is less than 50 in this inequality.

5 0
3 years ago
Read 2 more answers
Other questions:
  • A rug in the shape of a regular quadrilateral has a side length of 20 ft. What is the perimeter of the rug? a.4 b.5 c.40 d.80
    14·1 answer
  • 1 x - 37 =- 84<br> Solve please
    9·1 answer
  • Mr Sudimack earned a 4% commission on the sale of a hot tub that cost $3755. How much did he earn?
    6·1 answer
  • Please answer this correctly
    8·1 answer
  • Does anyone know how to solve this?
    6·1 answer
  • Plzzzzz help URGENT!!! will fail!!!! Need answer ASAP!!!!!!!
    13·1 answer
  • What is this expression in simplified form? 5v2 - 9v6 ​
    5·1 answer
  • Find the lengths of the diagonals of rectangle WXYZ.
    13·1 answer
  • (۷) =. What is g(۷) ?
    7·1 answer
  • What 2% percent of 50
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!