Wait time Process 1 600 ms Process 2 20 ms Process 3 30 ms CPU Process 1 600 ms Process 2 20 ms Process 3 30 ms Wait Time: 0ms Wait Time: 600ms Wait Time: 620ms Wait Time: 0ms Wait Time: 20ms Wait Time: 50ms
data and insert according to priority Process 1 600 ms Priority: 3 Process 2 20 ms Priority: 1 Process 3 30 ms Priority: 2 Process 1 600 ms Priority: 3 Process 2 20 ms Priority: 1 Process 3 30 ms Priority: 2 Sort By Priority Dequeue