Context Switching In Operating System. A context switching sometimes referred to as a task switch or a process switch. Basically, this context switching is the switching of the CPU from one process/thread to another one. A process which also sometimes referred to as a task is running instance of a program. Context switching is the procedure to restore. And store the state of the context of CPU in process control block(PCB). So that the process execution can be resumed from the same point at a later time. This context switching technique enables multiple processes to share a single CPU. This context switching is a major feature of a multitasking operating system. Whenever the scheduler switches the CPU from a process to execute another process. In this case, the context switcher saves the contents of all the processor’s registers for the process. Which is being removed from the CPU in its process descriptor.