Question
Which I/O scheduling algorithm is most suitable for
minimizing seek time in hard drives?Solution
The Shortest Seek Time First (SSTF) algorithm prioritizes requests based on proximity to the current position of the disk head, thereby minimizing seek time. By processing the closest request first, it reduces the movement of the read/write head, improving efficiency and speed. SSTF is particularly effective when disk requests are concentrated around specific areas. However, a downside is the risk of starvation , where requests far from the current head position may be delayed indefinitely. Why Other Options Are Incorrect:
- Option A: FCFS processes requests in the order they arrive, which may lead to excessive head movement and higher seek times.
- Option C: SCAN moves the disk head in one direction, servicing requests along the way, which reduces starvation but may involve more movement than SSTF.
- Option D: LOOK is similar to SCAN but stops at the last request in the direction of motion. It still involves more head movement compared to SSTF.
- Option E: C-SCAN ensures uniform wait times but does not minimize seek time as effectively as SSTF.
Which command is used to remove all records from a table without deleting the table structure?
A primary key in a table:
Which of the following is used to eliminate redundancy and anomalies in a database?
Which of the following is true about a view in SQL?
What is early binding in the context of OOP?
The result of a Cartesian product of two relations R and S will have:
Which of the following is a valid constraint in SQL?
Which SQL keyword is used to sort the result set?