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

Discussion

A task sending to a full queue with an infinite timeout will

  • A.block until space becomes available
  • B.overwrite the oldest message in the queue
  • C.return an error immediately
  • D.have its message discarded silently

Answer: A

Blocking is what applies back-pressure to a producer that is outrunning its consumer, and it is usually what is wanted. A zero timeout gives the immediate error instead, and an overwriting queue is a distinct construct offered by some kernels.

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

Post your comment

Please log in or register to post a comment.