What is a context switch? T

What is a context switch?

T

Answer: B. The act of saving and restoring the state of a process so that execution can be resumed from the same point at a later timeA context switch involves storing the context or state of a process so it can be reloaded when needed and execution can continue where it left off.

  1. A.

    Switching from user mode to kernel mode

  2. B.

    The act of saving and restoring the state of a process so that execution can be resumed from the same point at a later time

  3. C.

    Switching between different sections of code

  4. D.

    Moving a process from primary to secondary memory

Attempted by 497 students.

Show answer & explanation

Correct answer: B

A context switch involves storing the context or state of a process so it can be reloaded when needed and execution can continue where it left off.

Explore the full course: Operating System

Loading lesson…