Machine-translated by Google. Questions are authored in English.
Top

Discussion

The cost of a context switch is significant because it

  • A.grows in direct proportion to the number of tasks present in the system
  • B.is pure overhead that does none of the application's work
  • C.risks corrupting the outgoing task's variables
  • D.requires the interrupts to be disabled for its duration

Answer: B

A switch costing a hundred cycles at a thousand switches a second spends a hundred thousand cycles a second on bookkeeping. In a well designed kernel the cost is independent of the number of tasks, which is part of what determinism means.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.