answersLogoWhite

0


Best Answer

Suppose that a disk drive has 5000 cylinders, numbered 0 to

4999. The drive is currently serving a request at cylinder 143,

and the previous request was at cylinder 125. The queue of

pending requests, in FIFO order, is

86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130

Starting from the current head position, what is the total

distance (in cylinders) that the disk arm moves to satisfy all the

pending requests, for each of the following disk- scheduling

algorithms?

A. FCFS

B. SSTF

C. SCAN

D. LOOK

E. C-SCAN

F. C-LOOK

Answer:

A. The FCFS schedule is 143, 86, 1470, 913, 1774, 948, 1509,

1022, 1750, 130. The total seek distance is 7081.

B. The SSTF schedule is 143, 130, 86, 913, 948, 1022, 1470,

1509, 1750, 1774. The total seek distance is 1745.

C. The SCAN schedule is 143, 913, 948, 1022, 1470, 1509, 1750,

1774, 4999, 130, 86. The total seek distance is 9769.

D. The LOOK schedule is 143, 913, 948, 1022, 1470, 1509, 1750,

1774, 130, 86. The total seek distance is 3319.

E. The C-SCAN schedule is 143, 913, 948, 1022, 1470, 1509,

1750, 1774, 4999, 0, 86, 130. The total seek distance is

9985.

F. The C-LOOK schedule is 143, 913, 948, 1022, 1470, 1509,

1750, 1774, 86, 130. The total seek distance is 3363.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you give a C programm about Shortest seek time first algorithm?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can you give a C program about SJF algorithm?

no.


Give an example of a backtracking algorithm?

4d + 7 = -15


Give time complexity expression for kruskal's algorithm?

O(E lg V)


Can you give algorithm for my programs?

That's not our job.Unless your programs are trivial, the algorithm is likely to be too complicated to explain here, and if they are trivial, then... well, then they're trivial, and you should be able to figure them out yourself.


Write an algorithm and draw a corresponding flowchart to search a number in the given list of numbers and also display its position?

please give me an algorithm and a corresponding flow chart that displays list of numbers from 1 to 20.

Related questions

Give you the algorithm of creating a new binary search tree using c?

i want to know how to give the algorithm password in a computer ?


Can you give a C program about SJF algorithm?

no.


Can you give me the shortest declamation piece?

the shortest one is oh captain my captain it's the shortest


What was the shortest speech of Winston churchill?

the shortest speech he gave at a commencement cerimony.."never give up, never give up, never give up "...


Give an example of a backtracking algorithm?

4d + 7 = -15


What is the shortest Amendment of the US Constitutution?

Article III of the constitution is the shortest.


Give time complexity expression for bellman-ford algorithm?

o(mn)


What is time complexity of an algorithm?

Time complexity is a function which value depend on the input and algorithm of a program and give us idea about how long it would take to execute the program


Give time complexity expression for kruskal's algorithm?

O(E lg V)


What is the difference between a program and algorithm give examples in each?

Check your text book. The answer is there


Can you give algorithm for my programs?

That's not our job.Unless your programs are trivial, the algorithm is likely to be too complicated to explain here, and if they are trivial, then... well, then they're trivial, and you should be able to figure them out yourself.


Who gave the shortest graduation speech never give up?

winston churchill