ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > ZSTU-(2020-2021)-1 > student homework > 2018329621260_蒋广森 >
Homework 12 Version 0
👤 Author: by 804824950qqcom 2020-12-29 12:21:20
FCFS:
Suppose the order of request is- (82,170,43,140,24,16,190)
And current position of Read/Write head is : 50
So, total seek time = (82-50)+(170-82)+(170-43)+(140-43)+(140-24)+(24-16)+(190-16)=642

SSTF:
Suppose the order of request is- (82,170,43,140,24,16,190)
And current position of Read/Write head is : 50
So, total seek time = (50-43)+(43-24)+(24-16)+(82-16)+(140-82)+(170-40)+(190-170)=208

SCAN:
Suppose the requests to be addressed are-82,170,43,140,24,16,190. And the Read/Write arm is at 50, and it is also given that the disk arm should move “towards the larger value”.
Therefore, the seek time is calculated as (199-50)+(199-16)=332

CSCAN:
Suppose the requests to be addressed are-82,170,43,140,24,16,190. And the Read/Write arm is at 50, and it is also given that the disk arm should move “towards the larger value”.
Seek time is calculated as = (199-50)+(199-0)+(43-0)=391

LOOK:
Suppose the requests to be addressed are-82,170,43,140,24,16,190. And the Read/Write arm is at 50, and it is also given that the disk arm should move “towards the larger value”.
So, the seek time is calculated as = (190-50)+(190-16)=314

Please login to reply. Login

Reversion History

Loading...
No reversions found.