Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  On a disk with 1000 cylinders, numbers 0 to 9... Start Learning for Free
On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?
  • a)
    1219
  • b)
    1009
  • c)
    1967
  • d)
    1507
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
On a disk with 1000 cylinders, numbers 0 to 999, compute the number of...

∴ Total distance covered by the head
= (345 -123) + (123 -105) + (105 - 0) + (999 - 0) 
+ (999-874) + (874-692) + (692-475) + (475 -376)
= 222 + 18 + 105 + 999 + 125 + 182 + 217 + 99 
= 1967
View all questions of this test
Most Upvoted Answer
On a disk with 1000 cylinders, numbers 0 to 999, compute the number of...
C-SCAN Scheduling Algorithm

C-SCAN scheduling algorithm is a variation of the SCAN algorithm. In the SCAN algorithm, the disk arm moves in one direction servicing all the requests until it reaches the end of the disk and then reverses its direction and services the requests in the opposite direction.

In the C-SCAN algorithm, the disk arm always moves in one direction, servicing all the requests in that direction. When it reaches the end of the disk, it immediately returns to the beginning of the disk without servicing any requests in the opposite direction. This results in a more uniform service time for requests.

Calculation of Total Distance

Given:

Disk has 1000 cylinders numbered 0 to 999.
Last request serviced was at track 345 and the head is moving towards track 0.
Queue in FIFO order contains requests for the following tracks: 123, 874, 692, 475, 105, 376.

Steps:

1. Arrange the requests in ascending order.

The queue in ascending order is: 105, 123, 376, 475, 692, 874.

2. Calculate the distance between the last serviced track (345) and the first request track in the current direction (105).

The distance between 345 and 105 is 240.

3. Calculate the distance between the last request track in the current direction (874) and the end of the disk (999).

The distance between 874 and 999 is 125.

4. Calculate the distance between the beginning of the disk (0) and the first request track in the opposite direction (692).

The distance between 0 and 692 is 692.

5. Calculate the total distance traveled by the disk arm.

Total distance = (distance between 345 and 105) + (distance between 999 and 874) + (distance between 692 and 0) + (distance between 475 and 123) + (distance between 376 and 0)

Total distance = 240 + 125 + 692 + 352 + 376

Total distance = 1967

Therefore, the total distance traveled by the disk arm to satisfy all the requests in the disk queue using the C-SCAN scheduling algorithm is 1967. The correct option is C.
Free Test
Community Answer
On a disk with 1000 cylinders, numbers 0 to 999, compute the number of...

∴ Total distance covered by the head
= (345 -123) + (123 -105) + (105 - 0) + (999 - 0) 
+ (999-874) + (874-692) + (692-475) + (475 -376)
= 222 + 18 + 105 + 999 + 125 + 182 + 217 + 99 
= 1967
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer?
Question Description
On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer?.
Solutions for On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer?, a detailed solution for On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice On a disk with 1000 cylinders, numbers 0 to 999, compute the number of tracks the disk arm must move to satisfy all the requests in the disk queue. Assume the last request serviced was at tracks 345 and the head is moving towards track 0. The queue in FIFO order contains requests for the following tracks. 123, 874, 692, 475, 105, 376. Perform the computation using C-SCAN scheduling algorithm. What is the total distance?a)1219b)1009c)1967d)1507Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev