Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 640 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 640 Bytes

OS_C.A-3

Class Assignment for Implementing modified Shortest Job First Algorithm for set of processes

Consider a scheduling approach which is non pre-emptive similar to shortest job next in nature. The priority of each job is dependent on its estimated run time, and also the amount of time it has spent waiting. Jobs gain higher priority the longer they wait, which prevents indefinite postponement. The jobs that have spent a long time waiting compete against those estimated to have short run times. The priority can be computed as : Priority = 1+ Waiting time / Estimated run time Write a program to implement such an algorithm.