A context switch allows programmers to store the current state of a thread. An interviewer may ask you about context switching to see if you understand how multithreading works at the CPU level. When answering this question, explain what a context switch is and state why it's important in multithreading.