It is true that a context switch occurs each time a process moves to the running state.
A context switch is the process of restoring a different, previously preserved state after storing the state of a process or thread so that it can be restored and continue execution at a later date. This is a crucial component of a multitasking operating system since it enables numerous programs to share a single central processing unit (CPU).
The phrase "context switch" has a variety of precise meanings. When discussing multitasking, it alludes to the procedure of saving a task's system state so that it can be interrupted and another task resumed.
In order to free up CPU time for other processes, a context switch might also happen as a result of an interrupt, such as when a job needs to access disk storage. To switch between tasks running in kernel mode and user mode, several operating systems additionally demand a context switch. The act of transitioning between contexts may have a detrimental effect on system performance.
To know more about context switch click on the link:
https://brainly.com/question/15744866
#SPJ4