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
Please help worth 20 points will mark brainliest
ddd [48]

Answer:

P(t)= 100t + 150

Step-by-step explanation:

If the price for 6 hours of studio time is 600 dollars, that means every hour the studio is used it costs 100 dollars. Since the fixed fee is 150 dollars, that is added to the cost of how many hours the studio is used.

I hope this helped you. If it did Brainilest is appreciated.

3 0
4 years ago
59:52
Natali5045456 [20]

Answer: A line is the undefined geometric term is described as a two-dimensional set of points that has no beginning or end.

6 0
3 years ago
Read 2 more answers
Solve px-18=4 for x ​
sashaice [31]

Answer:

x=22/p

Step-by-step explanation:

1. Add 18 to 4

2. px=22

3. Divide by p to isolate x

4. 22/p=x

4 0
3 years ago
Read 2 more answers
Consider the following relation:(1,12) (3.8) (3,11) (6,9) (7,11) . Which ordered pair could be removed so that the relation is a
Y_Kistochka [10]

You could remove 3,11)


6 0
3 years ago
Someone help please!!!!! :( <br><br>(Edit: The answer was 126. )
borishaifa [10]

Answer:

a

Step-by-step explanation:

5 0
4 years ago
Other questions:
  • Each week Danny eats 540 grams of cereal over 8 weeks. He finishes a total of 12 boxes of cereal. Each box contains the same amo
    15·1 answer
  • Answer with explanation plz
    13·1 answer
  • Helppp ill mark u as brainlist​
    6·1 answer
  • The rule is :divided by 5 the pattern is : 625
    5·1 answer
  • Henry made himself a sandwich that was 11/12 of a foot long. He put pepperoni on 3/4 of his sandwich. What length of the sandwic
    9·2 answers
  • How do you find the apothem of a pentagonal pyramid?
    13·1 answer
  • Perform the indicated operation. (36m 2 - 60m + 25) ÷ (6m - 5)
    14·1 answer
  • A town has a population of 5000 and grows at 4% every year. What will be the population after 7 years, to the nearest whole numb
    13·2 answers
  • ILL GIVE BRANLIEST.. LOOK AT THE PIC
    7·1 answer
  • (21-3) x (7+2) ÷ (12-4) *<br> PLS HELP
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!