Which component of the operating system is responsible for performing the context switch under the control of the dispatcher?

The CPU performs the context switch under the control of the dispatcher. The dispatcher initiates the context switch by instructing the CPU to save the state of the current process and load the state of the selected process.