From the given process table:
Process P0: Arrival Time = 0 ms, Burst Time = 9 ms
Process P1: Arrival Time = 1 ms, Burst Time = 4 ms
Process P2: Arrival Time = 2 ms, Burst Time = 9 ms
Gantt Chart Execution (Pre-emptive Shortest Job First / SRTF):
Time 0 to 1 ms: Only P0 is present. P0 executes for 1 ms. Remaining burst of P0 = 8 ms.
Time 1 ms: P1 arrives with remaining burst 4 ms. Since 4<8, P0 is pre-empted and P1 starts executing.
Time 2 ms: P2 arrives with burst 9 ms. Remaining burst of P1 is 3 ms, which is the shortest (3<8<9). P1 continues executing.
Time 5 ms: P1 completes execution.
Time 5 ms to 13 ms: Ready queue has P0 (remaining 8 ms) and P2 (remaining 9 ms). Since 8<9, P0 executes to completion at time 5+8=13 ms.
Time 13 ms to 22 ms: P2 executes to completion at time 13+9=22 ms.
Calculation of Waiting Times:
Completion Time (CT):
P0: 13 ms
P2: 22 ms
Turnaround Time (TAT=CT−AT):
P0: 13−0=13 ms
P1: 5−1=4 ms
P2: 22−2=20 ms
Waiting Time (WT=TAT−BT):
P0: 13−9=4 ms
P1: 4−4=0 ms
P2: 20−9=11 ms
Average Waiting Time:
Average WT=34+0+11=315=5.0 ms Hence, the correct option is A.