Processes have a priority #. The highest priority is the smallest #. The CPU is allocated to the process with the highest priority.
SJF is priority, where
.
Starvation may occur where low priority processes will never execute. A solution to this is Ageing, i.e. as time progresses, increase priority.