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

Discussion

A sensor produces a 4-byte sample every 2 ms and the consuming task runs every 50 ms. The queue must hold at least

  • A.50 samples
  • B.4 samples
  • C.25 samples
  • D.13 samples

Answer: C

Correct answer: 25 samples

\[ \frac{50\ \mathrm{ms}}{2\ \mathrm{ms}} = 25\ \mathrm{samples}. \] That is the minimum, and a real design would add margin for jitter in the consumer’s scheduling. Sizing to the exact figure leaves nothing for the case where the task runs a little late.

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

Post your comment

Please log in or register to post a comment.