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

Discussion

A queue is sized for the worst-case burst rather than the average rate because

  • A.a single overflow loses data that cannot be recovered
  • B.the kernel rounds every queue up to a power of two
  • C.the average rate cannot be measured reliably
  • D.a larger queue reduces the context switch overhead

Answer: A

Averages hide the burst that arrives while the consumer is busy elsewhere, and the item lost is gone. Where losing data is acceptable the queue may be sized for the average and the overflow counted instead, which is a legitimate but deliberate choice.

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

Post your comment

Please log in or register to post a comment.