Professional Documents
Culture Documents
Os Lab 5
Os Lab 5
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