According to me now , on learning and focussing the points of vivek the answer is one . one context switch takes.
saving one process context and then loading the another process context and then running it . its all in one context switch.
now if u can understand then i may define it in the way we have read till now.
in the grant chat how many context switch does we count if we switch one process and select another process. only one . if this question is taking two context switch then we must have to take 2 context switch between p1 and p2 . one to push it in the wait/ suspended . and second to put p1 in running state that is not happening . so answer is one.
thanks vivek for asking again and again.