CS FundamentalsModerateGATE CS
Which inter-process communication mechanism does NOT need the kernel to copy the data between the two processes for each message?
- A. Pipes
- B. Message queues
- C. Sockets on the same machine
- 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
- A pipe has capacity 64 KB. A writer process writes 100 KB with a single write() call while no process ever reads from the pipe. What…
- A process ignores SIGINT and then calls exec() to run a new program. Which statement is correct?
- Which signals can neither be caught nor ignored by a process?
- How many of these statements about microkernels are correct? 1. Device drivers and file systems typically run in user space as servers. 2…
- What is the purpose of the dual-mode (user/kernel) bit together with a timer interrupt?
- A system call such as getpid() costs about 100 ns, while a plain function call costs about 2 ns. Which is the main reason?