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

Discussion

Comparing disabling interrupts with taking a kernel lock to protect shared data, disabling interrupts

  • A.excludes other tasks but not interrupt handlers
  • B.is always the cheaper of the two operations
  • C.is the only method a preemptive kernel provides
  • D.also excludes handlers but harms interrupt latency

Answer: D

A kernel lock stops other tasks and leaves handlers running, which is enough when only tasks share the datum and much kinder to latency. Where a handler touches it too, interrupts must be disabled, and then the region has to be very short.

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

Post your comment

Please log in or register to post a comment.