Have question on priority scheduling both in preemptive and nonpreemptive and wanted to make sure understand it correctly. (Higher the number highest priority)
Process Arrival Time Burst Time Priority
P1 0 5 5
P2 0 12 7
Since these processes come in at the same time in preemptive P2 would run first for 12 and then P1, but in nonpreemptive would FCFS be used and P1 would run first and then P2?