Under nonpreemptive scheduling, once the CPU has allocated to a process, the process keeps the CPU until1.It releases the CPU by terminating2.It releases the CPU by switching to the waiting state3.It releases the CPU by switching to the ready state4.It releases the CPU by switching to the running state
A. 1 and 2
B. 1,2,3
C. 2,3,4
D. 1,2,3,4