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
Pls someone help i really need this
iris [78.8K]
It would be 70=20x.

You would multiply 20 (snake’s speed) by x to get the cheetah’s maximum speed because the question says that the cheetah is 20 times faster than the snake
4 0
3 years ago
Read 2 more answers
Find the value of x for which p is parallel to q , if m<1=(3x) and m<3=105. The diagram is not scale.
lesya [120]
P parallel to q
So m<1 =m <3
3x=105
x=35
tell me if you don't understand
3 0
3 years ago
The point (4,-2) is the vertex of the graph of a quadratic function. The points (8,6) and (2,0) also fall on the graph of the fu
Elina [12.6K]

Answer:

Step-by-step explanation:

y = ax² + bx + c

~~~~~~~

(4, - 2), (8, 6), (2, 0)

a(4²) + b(4) + c = - 2

a(8²) + b(8) + c = 6

a(2²) + b(2) + c = 0

16a + 4b + c = - 2 .............. <em>(1)</em>

64a + 8b + c = 6 ............... <em>(2)</em>

4a + 2b + c = 0 ................. <em>(3)</em>

a = 0.5 ; b = - 4 ; c = 6

<em>y = 0.5x² - 4x + 6</em>

Part A: (0, 6), (6, 0)

Part B: (0,6)

Part C: (6, 0)

Part D: [ 4, ∞ )

4 0
3 years ago
Bayes' theorem provides a way to transform prior probabilities into posterior probabilities. Group of answer choices True False
Dvinal [7]

Answer:

True

Step-by-step explanation:

Bayes' theorem is indeed a way of transforming prior probabilities into posterior probabilities. It is based on the principle of conditional probability. Conditional probability is the possibility that an event will occur because it is dependent on another event.

The prior probability in this theorem is the present understanding we possess about the possible outcome of an event based on the current understanding we have about the subject. Posterior probability on the other hand is the new understanding we have of the subject matter based on an experiment that has just been performed on it. Bayes' Theorem finds widespread application which includes the fields of science and finance. In the finance world, for example, Bayes' theorem is used to determine the probability of a debt being repaid by a debtor.

6 0
3 years ago
10 more pls help me and add me on snap
777dan777 [17]

Answer:

x=29  y=90

Step-by-step explanation:

5 0
2 years ago
Read 2 more answers
Other questions:
  • at our school, 5 out of 7 students is involved in an after school activity.how many of the 700 students are in and after school
    7·1 answer
  • 3. Which inequalities show a correct relationship between expressions?
    5·1 answer
  • Assume that when adults with smartphones are randomly selected, 35% use them in meeting or classes. if 7 adults smartphones user
    15·1 answer
  • In how money ways can a five-letter license plate be made with the letters from April if none of the letters are repeated ?
    5·1 answer
  • Find the perimeter of a regular octagon if one side has a measure of 8 cm. A. 72 cm. B. 64 cm. C. 56 cm. D. 16 cm. Mark for revi
    6·1 answer
  • The sum of a number and its reciprocal is 6.41. What is the number?
    5·1 answer
  • Plz help plzzZZZZZZZ
    12·2 answers
  • Solve the system of equations. y=-3/2+9 <br> 2x+2y=16
    9·1 answer
  • HELP
    12·2 answers
  • 2. Which theorem would show that x = 5 in the diagram?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!