### 1. Preemptive Shortest Remaining Time First (SRTF)
Let the given processes be:
A: Arrival Time (AT)=0, Burst Time (BT)=10
B: AT=2, BT=6
C: AT=4, BT=3
D: AT=6, BT=7
Gantt Chart Execution:
Time 0 to 2: Process A executes (remaining time of A=8).
Time 2 to 4: Process B arrives with remaining time 6<8, so B preempts A and executes (remaining time of B=4).
Time 4 to 7: Process C arrives with remaining time 3<4, so C preempts B and runs to completion (at t=7).
Time 7 to 11: At t=7, ready queue has B (rem = 4), D (arrived at t=6, rem = 7), and A (rem = 8). Process B has the shortest remaining time and runs to completion (at t=11).
Time 11 to 18: Process D (rem = 7) runs to completion (at t=18).
Time 18 to 26: Process A (rem = 8) runs to completion (at t=26).
Turnaround Time (TAT = Completion Time - Arrival Time) and Waiting Time (WT = TAT - Burst Time):
Process A: CT=26, TAT=26−0=26, WT=26−10=16
Process B: CT=11, TAT=11−2=9, WT=9−6=3
Process C: CT=7, TAT=7−4=3, WT=3−3=0
Process D: CT=18, TAT=18−6=12, WT=12−7=5
Average WT for SRTF=416+3+0+5=424=6 ---
### 2. Non-Preemptive Shortest Job First (NP-SJF)
Gantt Chart Execution:
Time 0 to 10: Process A arrives first at t=0 and executes non-preemptively until completion at t=10.
At t=10, all remaining processes are ready: B (BT = 6), C (BT = 3), D (BT = 7).
Time 10 to 13:C has the shortest burst time (3), so C executes until t=13.
Time 13 to 19:B has the next shortest burst time (6), so B executes until t=19.
Time 19 to 26:D executes until t=26.
Turnaround Time and Waiting Time:
Process A: CT=10, TAT=10−0=10, WT=10−10=0
Process B: CT=19, TAT=19−2=17, WT=17−6=11
Process C: CT=13, TAT=13−4=9, WT=9−3=6
Process D: CT=26, TAT=26−6=20, WT=20−7=13
Average WT for NP-SJF=40+11+6+13=430=7.5 Therefore, SRTF=6 and NP-SJF=7.5, matching option (B).