I have a question for Priority based preemptive Shortest Job First algorithm. If two processes have the same priority, who is the one to go first. The one that was put in first or the one with smaller burst time? Same goes with burst time if I have 2 processes with same burst time do I sort by priority? And what happens if 2 processes have same burst time and priority?
For example what would a Gantt chart based on this table look like?
Arrival Time Burst Time Priority
p0 0 8 2
p1 4 15 5
p2 7 9 3
p3 13 5 1
p4 9 13 4
p5 0 6 1