01.06.2014 Views

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Disk scheduling algorithms (1)<br />

• FCFS scheduling<br />

◾ The I/O request queue is follows the FIFO queuing discipline<br />

◾ <strong>Request</strong>s are serviced in the order in which they were submitted to the operating system’s I/O manager<br />

◾ Although the algorithm is fair, the distribution of requests across the disk means a significant proportion of the<br />

disk access time is spent seeking<br />

• SSTF scheduling<br />

◾ Shortest seek time first<br />

◾ Of the queued requests, select the one that is closest to the current disk head position (the position of the last<br />

disk access)<br />

◾ Reduces time spent seeking<br />

◾ Problem: Some requests may be starved<br />

◾ Problem: The algorithm is still not optimal<br />

218<br />

<strong>Trinity</strong> <strong>College</strong> <strong>Dublin</strong><br />

© Mike Brady 2007–2009

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!