Shortest remaining time first algorithm with example in operating system