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

Discussion

A design gives a semaphore from a 1 kHz interrupt and takes it in a task that needs 1.2 ms per item. The outcome is

  • A.the task keeps up
  • B.the handler blocks
  • C.the task runs at 1 kHz
  • D.the count grows without limit until the semaphore saturates

Answer: D

A thousand events a second against 833 the task can process is a sustained imbalance of a fifth, so the pending count rises until it reaches the semaphore's maximum and further events are lost silently. No buffer absorbs a sustained mismatch, and the arithmetic must be done before the design is committed.

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

Post your comment

Please log in or register to post a comment.