Multiple choice technology programming languages

Difference between shared memory & message queue

  1. No differences

  2. IPC mechanism vs Non-IPC mechanism

  3. Non-destructive read vs destructive read

  4. Destructive read vs non-destructive read

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The key difference is in read semantics: shared memory allows non-destructive reads (multiple processes read the same data), while message queues have destructive reads (messages are removed after being read). Option D has the direction reversed.