What is the purpose of a 'context switch' in a multitasking OS?
-
A
Moving data between user and kernel space
-
B
Saving one process's CPU state and restoring another's to allow time-sharing
-
C
Switching between kernel and user mode
-
D
Transferring control from one CPU core to another