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

Discussion

A message queue passes data between tasks by

  • A.mapping the sender's stack into the receiver's address space
  • B.signalling the receiver
  • C.copying the message into and out of kernel storage
  • D.passing a pointer that both tasks then share

Answer: C

Copying decouples the two tasks completely: the sender may reuse its buffer at once and the receiver holds a private copy. For large messages the copying costs time, and a pointer to a pool buffer is then queued instead.

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

Post your comment

Please log in or register to post a comment.