Q. Explain the actions taken by a kernel to context switch between kernel level threads.
Answer: Context switching among kernel threads classically requires saving the value of the CPU registers from the thread being switched out and restoring the CPU registers of the new thread being scheduled.