ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > ZSTU-(2020-2021)-1 > student homework > 2018529627050_David Bukedi Diela >
Homework12_2018529627050 Version 0
👤 Author: by wx287_oz26ft1wt2_isbggtha4lgepaasa 2020-12-24 07:33:05
 

Suppose the order of request is- (82,170,43,140,24,16,190)
And current position of Read/Write head is : 50

1.FCFS:

total seek time:
=(82-50)+(170-82)+(170-43)+(140-43)+(140-24)+(24-16)+(190-16)
=642

2.SSTF

total seek time:

=(50-43)+(43-24)+(24-16)+(82-16)+(140-82)+(170-40)+(190-170)
=208

3.SCAN

given that the disk arm should move “towards the larger value”

total seek time:

=(199-50)+(199-16)
=332

4.C-SCAN

given that the disk arm should move “towards the larger value”.

Seek time is calculated as:

=(199-50)+(199-0)+(43-0)
=391

5.LOOK

given that the disk arm should move “towards the larger value”.

the seek time is calculated as:

=(190-50)+(190-16)
=314

6.CLOOK
given that the disk arm should move “towards the larger value”

the seek time is calculated as:

=(190-50)+(190-16)+(43-16)
=341

 

Please login to reply. Login

Reversion History

Loading...
No reversions found.