arrow
arrow
arrow
Which of the following is not an interprocessor communication mechanism in UNIX?
Question

Which of the following is not an interprocessor communication mechanism in UNIX?

A.

Pipes

B.

Messages

C.

Shared memory

D.

Semaphore

Correct option is D

Inter-Process Communication (IPC) mechanisms in UNIX allow processes to exchange data or coordinate their activities. The commonly recognized UNIX IPC mechanisms include:
· Pipes
· Message queues
· Shared memory
· Sockets
· Signals
A semaphore, however, is primarily a synchronization mechanism, used to control access to shared resources and coordinate processes. It does not itself provide a mechanism for exchanging data between processes.
Therefore, among the given options, the one that is not primarily an interprocessor/process communication mechanism is:
(d) Semaphore\boxed{\text{(d) Semaphore}}​​
Information Booster
1. Pipe → Communication through a byte stream.
2. Message Queue → Communication through discrete messages.
3. Shared Memory → Processes communicate through a shared memory region.
4. Semaphore → Synchronization and mutual exclusion.
5. Socket → Communication between processes, including across networks.
Additional Knowledge
Why the Other Options Are Correct?
(a) Pipes — IPC
A pipe provides a communication channel through which one process can send data to another.
P1PipeP2P_1\rightarrow\text{Pipe}\rightarrow P_2​​
(b) Messages — IPC
UNIX provides message queues, allowing processes to communicate by sending and receiving messages.
(c) Shared Memory — IPC
Shared memory allows multiple processes to access a common region of memory and is one of the fastest IPC mechanisms.
(d) Semaphore — Synchronization
A semaphore is primarily used to synchronize processes and control access to shared resources. It is generally classified as an IPC-related synchronization primitive, rather than a data-communication mechanism.

Free Tests

Free
Must Attempt

Basics of Education: Pedagogy, Andragogy, and Hutagogy

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon12 Mins
languageIcon English
Free
Must Attempt

UGC NET Paper 1 Mock Test 1

languageIcon English
  • pdpQsnIcon50 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt

Basics of Education: Pedagogy, Andragogy, and Hutagogy

languageIcon English
  • pdpQsnIcon10 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon12 Mins
languageIcon English
test-prime-package

Access ‘UGC NET Computer Science’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
527k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow