user
Can you help with this?

Define what is a context switch

assistant
A context switch is the process of saving and restoring the state or context of a computer process so that execution can be resumed from the same point at a later time. It enables an operating system to perform multitasking by allowing multiple processes to share a single CPU resource.