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

Discussion

A stream buffer differs from a message queue in that it carries

  • A.a bitmap of events rather than any payload
  • B.a byte stream with no message boundaries
  • C.messages of a single fixed length only
  • D.pointers rather than data in every case

Answer: B

Bytes written in any quantity can be read in any other, which suits a serial port or an audio stream where the framing is the application's business. A message buffer keeps the boundaries by prefixing each item with its length, and a queue keeps them by fixing the item size at creation.

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

Post your comment

Please log in or register to post a comment.