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

Discussion

Assertion: a callback is preferable to blocking in a driver. Reason: a callback never runs in interrupt context.

  • A.the assertion is true but the reason given for it is false
  • B.both the assertion and the reason are true and the reason explains the assertion
  • C.both the assertion and the reason are true but the reason does not explain the assertion
  • D.the assertion is false although the reason offered is a true statement in itself

Answer: A

Callbacks do avoid a task blocked per device, which is a real advantage in an event-driven design, but they very frequently run in interrupt context and that is their chief hazard. The reason is the opposite of the truth.

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

Post your comment

Please log in or register to post a comment.