Context switches can occur only in kernel mode. So for process switches first we have to move from user to kernel mode. Then we have to save the PCB of the process from which we are taking off CPU and then we have to load PCB of the required process(or new process).
example:- context switch between user and kernel modes of execution will be faster than the context switch between two processes.
please explain given example as i am getting user mode->kernel mode FASTER than
two processes(user->user mode)
statement:1
Context switching between user-level threads is faster than context switching between kernel-level threads.
is true because here context switching between threads not processes. we need to move user to kernel mode only for process switches, not for threads
are the above-given statement and its explanation is true or not??if not please correct it!