CS FundamentalsModerateGATE CS

Which inter-process communication mechanism does NOT need the kernel to copy the data between the two processes for each message?

  1. A. Pipes
  2. B. Message queues
  3. C. Sockets on the same machine
  4. D. Shared memory

Correct answer: D. Shared memory

After the shared segment is mapped into both address spaces, processes read and write it directly; synchronisation is the programmer's job. Pipes, message queues and sockets copy data through kernel buffers.

More Operating Systems questions

Exams that ask this topic