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
Which describes the graph of mc014-1.jpg on [0, 3)? The steps are at –2 from 0 to 1, at –1 from 1 to 2, and at 0 from 2 to 3. Th
Strike441 [17]
1) The graph consists of three horizontal segments, with discontinuities (jumps) at x = 1, x = 2, and x = 3. 
A horizontal segment at y = - 2 for the values x = 0 to 1.
A horizontal segment at y = - 1 for values x = 1 to 2
A horizontal segment at y = 0 for values x - 2 to 3.


2) To know whether the end points of a segment are defined by the left or the right values you have to look for the circle at the extreme of the segment: if it is a solid dot, means that the end is included, if is is an open circle (white inside) then the end is not included in that segment.

3)  That function is based on the function named integer part because if relates y with the integer part of x.

The integer value function is [x] and it makes correspond y values witht he integer values of x.:

y = 0 witht the integer value of x for x between 0 and 1, excluding 1.

y = 1 with the integer value of x between 1 and 2 (excluding 2)

y = 2 with the integer value of x between 2 and 3 (excluding 3)
y = 3 with the integer value of x between 3 and 4 (excluding 4)

But our function is two units below, so it is [x] - 2
8 0
2 years ago
Read 2 more answers
What is the quotient in the polynomial form?
Oxana [17]

First step of a synthetic divison is that we need to carry down the leading coefficient. Here the leading coefficient is 2. So, carry down 2 at the bottom.

Next step is to multiply the divisor -3 with this carry down number 2. So, we have got 3*(-2)= -6 which will place atthe bottom of the next coefficient 4.

Next step is to add this column.

Now repeat the same method again till the last colum.

At the end we have got 0 after the addition. Which means the remainder is 0.

So, the quotient is 2x^2-2x+2.

8 0
3 years ago
Please help, im two weeks behind on my math ):
bixtya [17]

Answer:

the surface of area is 14cm to 2cm to 6cm please rate my answer

3 0
2 years ago
Jose will travel 268 km with his family this weekend. How many miles will he travel? Round to the nearest hundredth.
Vinil7 [7]
I think its 200 as if you convert to miles it's 166.527 and rounded to nearest hundredth is 200
8 0
3 years ago
In figuring his net income, Mr.Halkides listed his salary income of $15,000, $258 from his dividends,and $2562 from the sale of
Black_prince [1.1K]
Net income is all cost factors put together, so total income minus total expenses.

15000 + 258 + 2562 = 17820
1346 + 1598 + 48 = 2992
17820 - 2992 = $14828
5 0
3 years ago
Other questions:
  • According to an article in Newsweek, the natural ratio of girls to boys is 100:105. In China, the birth ratio is 100: 114 (46.7%
    10·1 answer
  • Choose 5 ordered pairs whose first component is the additive inverse of the second component. Plot these points and connect them
    12·2 answers
  • Graph a line with a slope of -2/5 That contains the point (-3,5)
    8·1 answer
  • Share 60 in the ratio 5 7
    8·1 answer
  • Find all solutions of the equation 2sin2x−cosx=1 in the interval [0,2π), what is x?
    15·1 answer
  • PLEASE ANSWER FAST
    5·1 answer
  • Please help with this​
    9·1 answer
  • Describe how you can use make a ten strategy to find the sum 7+9.<br> Help please 2 grade,
    11·1 answer
  • In germany vat is at 19% jeremy buys a calculator in germany for
    9·1 answer
  • Hey lads could you please check out my channel on you.tube please leave a like and subscribe it would help a lot much love stay
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!