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 town of Madison has a population of 25000. the population is increasing by a factor of 1.12 each year.
Lena [83]

Answer:

P(t)=25000(1.12)^t

Step-by-step explanation:

If we start with the initial population size, 25,000 people, and keep multiplying by 1.12 this function gives us the population of Madison t years from now: P(t)=25000(1.12)^t

4 0
3 years ago
Read 2 more answers
Which of the following is the standard equation of the ellipse with vertices at (1,0) and (27,0) and an eccentricity of 5/13?
Dovator [93]

The equation of the elipse is given by:

\frac{(x - 14)^2}{169} + \frac{y^2}{144} = 1

The equation of an elipse of center (x_0, y_0) is given by:

\frac{(x - x_0)^2}{a^2} + \frac{(y - y_0)^2}{b^2} = 0

Values a and b are found according to the <u>vertices and the eccentricity</u>.

It has vertices at (1,0) and (27,0), thus:

x_0 = \frac{27 + 1}{2} = 14

y_0 = \frac{0 + 0}{2} = 0

a = \frac{27 - 1}{2} = 13

a^2 = 169

It has eccentricity of \frac{5}{13}, thus:

\frac{5}{13} = \frac{c}{a}

\frac{5}{13} = \frac{c}{13}

c = 13

Thus, b is given according to the following equation:

c^2 = a^2 - b^2

b^2 = a^2 - c^2

b^2 = 169 - 25

b = \sqrt{144}

b = 12

The equation of the elipse is:

\frac{(x - 14)^2}{169} + \frac{y^2}{144} = 1

A similar problem is given at brainly.com/question/21405803

3 0
3 years ago
A and B someone can help ny plis
kolezko [41]

Answer:

Part A: 15 and 100 are the coefficients!

Part B: Two terms in the expression!

Step-by-step explanation:

3 0
3 years ago
Coach Jeffries had forty-six students sign up for after-school soccer. Then some students decided to join after-school basketbal
Natasha_Volkova [10]

21

hwhdidjcbudhdhdhdvdhkd

7 0
3 years ago
I don't understand ÷ fractions
Reptile [31]
Ok. so, you have a fraction. lets say it is, 5/20. and the other, is. 2/5. flip the first one, and multiply. so your answer would be, 25/40. hope this helps.
7 0
3 years ago
Other questions:
  • PWEASE HELP ME THIS IS SO HARD!
    12·2 answers
  • Which statements about doubling an investment are true? Check all that apply.
    10·2 answers
  • Which statements include two quantities in the real world that are additive inverses?
    6·2 answers
  • What are these two answers. Please
    6·1 answer
  • Once you reach the last step of a maths equation which shows <br>-8k = 8k . what is k ?
    15·2 answers
  • On Monday, Hayes ran 13 4 miles. Which of these distances is greater? A) 1 3/2 miles B) 1 3/5 miles C) 1 3/6 miles D) 1 3/7 mile
    10·1 answer
  • Anybody know this one? I’m set that it is B but I am not too sure
    7·1 answer
  • Select ALL of the expressions that are equivalent to 3(8-4x)
    10·1 answer
  • Identify each expression that represents the slope of a tangent to the curve y=1/x+1 at any point (x,y) .
    15·1 answer
  • Can you help me out it would be much appreciate thank you
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!