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

Discussion

A driver is reentrant if it

  • A.can be entered again before a previous call has returned
  • B.keeps all its state in static variables
  • C.disables interrupts for the whole duration of every call made to it
  • D.may be called only from one task

Answer: A

That requires its state to be in the caller's storage or in a per-instance structure rather than in file statics. A driver called from two tasks, or from a task and a handler, must be reentrant or must serialise its callers.

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

Post your comment

Please log in or register to post a comment.