You are on page 1of 7

Operating systems CSE 2005

Assessment - 5

Question
A TNSTC with the following bus stops with distances. Currently bus position at
Chittoor Bus stop - 143. Find out total travel distance covered by bus to cover all the
stop requests with the following algorithms.
a) FCFS b) SSTF c) SCAN d) C-SCAN

A) FCFS
Code
Output

B) SSTF
Code
Output

c) SCAN
code
output

d) c scan
code
output

You might also like