shortest seek time first sstf - TarisMajor/5143-OpSystems GitHub Wiki
Shortest Seek Time First (SSTF) is a disk scheduling algorithm that selects the disk I/O request that is closest to the current disk head position. By minimizing the seek time—the time it takes for the disk arm to move to the required track—SSTF can improve overall disk performance compared to the First-Come, First-Served (FCFS) approach.
- Proximity-Based Selection: SSTF prioritizes requests based on their proximity to the current position of the disk head. The request with the shortest seek time is serviced next.
- Dynamic Order: Unlike FCFS, the order in which requests are serviced can change dynamically as new requests arrive.
- Reduced Seek Time: By always servicing the closest request, SSTF minimizes the seek time, leading to faster overall disk performance.
- Improved Throughput: The reduction in seek time generally results in higher throughput, meaning more I/O operations can be completed in a given time period.
- Starvation: Requests that are far from the current disk head position can experience indefinite delays if closer requests keep arriving. This can lead to starvation of some requests.
- Complexity: Implementing SSTF requires keeping track of all pending requests and dynamically calculating seek times, which adds complexity to the scheduling algorithm.
- Systems with High I/O Demand: Suitable for environments where high disk throughput is required, such as database servers and large-scale data processing systems.
- Real-Time Systems: Can be beneficial in systems where minimizing the average response time is crucial, provided measures are in place to prevent starvation.