Here multilevel queue is in effect. and in second queue each of them comes gets CPU for 1 sec
Now, P1 and P4 are Batch scheduling.
So, they will use FCFS scheduling. But as in first queue each process takes queue for 4 sec. , so here too round robin takes place
Here P1 comes to queue first., as it enters in queue at 0 sec.
So, P1 will executed for 1st 4 sec.
then P2 and P3 comes and go with RR scheduling
then P1 executes next 4 sec, at last P4 going to execute.
as it is given " two processes (if available) are dispatched from the interactive queue followed by one process (if available) from the batch queue ".
So, after execution of P2 and P3 fully , then P1 going to execute again.
Gnatt chart will be like
0..........P1..........4.....P2....5.....P3.....6.....P2.....9...........P4.............13........P1........17......P4.......19
Now, TAT for P1=17sec.
TAT for P2=8.6sec.
TAT for P3=5 sec
TAT for P4=11.4 sec.
So, Avg. TAT will be (17+8.6+5+11.4)/4=10.5sec.