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

Discussion

A message buffer is preferred to a stream buffer when the receiver must know

  • A.which task wrote each of the bytes
  • B.the priority of the writing task
  • C.where each item begins and ends
  • D.how many bytes remain unread in total

Answer: C

Variable-length items need their boundaries preserved, and the message buffer stores a length with each one so a read returns exactly one item. A stream buffer would deliver whatever happened to be available and leave the framing to be reconstructed.

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

Post your comment

Please log in or register to post a comment.