1,237 views
2 votes
2 votes

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!

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
1 votes
1 votes
1 answer
3
sanyam53 asked Jan 7, 2017
1,677 views
How many time context switch in Round Robin? ( if only one process remain in ready queue at end of scheduling does that count every time, when time slice over or only one...