0 votes 0 votes How does LOOK algorithm decides that this is the last request? What technique is used to determine that after this request, instead of going to the end of disk, the direction should be changed? Operating System disk-scheduling operating-system + – Astitva Srivastava asked Dec 3, 2018 Astitva Srivastava 822 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Jaideep Bankoti commented Dec 3, 2018 reply Follow Share One way is to feed the algorithm with a an array of the records ,so when the RW head reaches the largest or lowest number it changes direction 0 votes 0 votes Astitva Srivastava commented Dec 6, 2018 reply Follow Share But requests are dynamic, so how can you possibly determine the array of requests. Moreover how it will decide that it this the largest number/ lowest number without traversing the whole array? 0 votes 0 votes Jaideep Bankoti commented Dec 6, 2018 reply Follow Share check this out! here is the link to a c implementation of the scheduling algorithms https://codereview.stackexchange.com/questions/48326/disk-scheduling-algorithm 0 votes 0 votes Astitva Srivastava commented Dec 7, 2018 reply Follow Share Thanks. But it is a program which intends to calculate head movements only. My concern is different. 0 votes 0 votes Please log in or register to add a comment.