Question d’entretien chez Microsoft

How is a context switch handled by the operating system?