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 is the ratio of 20 praise and 2000 rupees<br>​
AnnZ [28]
1:100 because 20 divide by 20=1 and 2000 divide by 20 =100
8 0
3 years ago
Read 2 more answers
Determine whether LINE AB and LINE CD are parallel, perpendicular, or neither. A(−1, −4) , B(2, 11) , C(1, 1) , D(4, 10) ( write
Luba_88 [7]

Step-by-step explanation:

Hey there!

The points of line AB are; (-1,-4) and (2,11).

Note:

  • Use double point formula and simplify it to get two eqaution.
  • Use condition of parallel lines, perpendicular lines to know whether the lines are parallel or perpendicular or nothing.

~ Use double point formula.

(y - y1) =  \frac{y2 - y1}{x2 - x1} (x - x1)

~ Keep all values.

(y  + 4) =  \frac{11 + 4}{2 + 1} (x + 1)

~ Simplify it.

y + 4 =  \frac{15}{3} (x + 1)

y + 4 = 5x + 5

5x - y + 1 = 0

Therefore this is the equation of line AB.

Now, Finding the equation of line CD.

Given;

The points of line CD are; (1,1) and (4,10).

~ Using formula.

(y - y1) =  \frac{y2 - y1}{x2 - x1}(x - x1)

~ Keep all values.

(y - 1) =  \frac{10 - 1}{4 - 1} (x - 1)

~ Simplify it.

y - 1 = 3 x - 3

3x - y - 2 = 0

Therefore, 3x - y- 2 = 0 is the eqaution of line CD.

Use condition of parallel lines.

m1= m2

Slope of equation (i)

m1 =  \frac{ - coeff. \: of \: x}{coeff \: of \: y}

m1 =  \frac{ - 5}{ - 1}

Therefore, m1 = 5

Slope of second equation.

m2 =  \frac{ - coeff \: .of \: x}{coeff \: .of \: y}

m2 =   \frac{ - 3}{ - 1}

Therefore, m2 = 3.

Now, m1≠m2.

So, the lies are not parallel.

Check for perpendicular.

m1*m2= -1

3*5≠-1.

Therefore, they aren't perpendicular too.

So, they are neither.

<em><u>Hope </u></em><em><u>it</u></em><em><u> helps</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em>

6 0
3 years ago
What is the difference between 2.6 m and 108 cm?
sashaice [31]

Answer:

A centimeter is 1/100th of a meter. It would take the length of 100 cm to equal the length of a single meter. A centimeter is equivalent to 0.39 inches. ... A meter is equal to 3.28 feet, 1.09 yards or 0.00062 miles.

Step-by-step explanation:

4 0
2 years ago
PLEASEEEE HELP ME!!
qwelly [4]

Answer:

no

Step-by-step explanation:

6 0
3 years ago
Solve for d 4d &gt; 8 (Please help)
vekshin1

Answer:

d > 2

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • In the year 2006, a person bought a new car for $13500. For each consecutive year after that, the value of the car depreciated b
    7·1 answer
  • How do you know which side is base
    10·2 answers
  • 40 POINTS!!! QUICK PLEASE!!!!Solve each problem and round to the nearest tenth.
    14·1 answer
  • a bottle of cola has 39 grams of sugar. a bottle of diet cola contains no sugar. if you drink two bottles of regular cola and on
    5·1 answer
  • 32, I just need to see if I’m right.
    8·1 answer
  • How many inches are in 4 meters? meters, feet, inches .
    12·2 answers
  • Please help DO NOT IGNORE DO NOT IGNORE
    13·1 answer
  • X2 + 12x =<br> – 20<br> what are the roots of the following quadratic equation
    15·1 answer
  • The coefficient of x in the expression of(x+3) (x-1) is​
    13·1 answer
  • Someone pls help asap this is supposed to be done it 3 min
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!