Consider the following processes with priority
Process P1 P2 P3 P4
Burst Time 5 4 3 2
Priority 2 1(highest) 3 4
Arrival time 0 2 3 4
Processes are scheduled using priority scheduler with preemption of a process whenever a new process arrived with high priority. A process can continue the execution if arrived process in ready queue has lower priority than the executing process. what is the average waiting time of the process?
a) 5 b) 6.2 c) 4.3 d) 4.5 e) none