quiz

Inter-Process Communication

1. What is the purpose of Inter-process Communication (IPC) in computer systems?

  • A) To isolate independent processes 
  • B) To facilitate communication and synchronization between processes
  • C) To increase the execution efficiency of processes
  • D) To prevent processes from affecting each other during execution
B) To facilitate communication and synchronization between processes Explanation

2. What is the fastest IPC method for communication between processes on the same system?

  • A) Shared Memory
  • B) Message Queues
  • C) Pipes
  • D) Signals
A) Shared Memory Explanation

3. What is the primary purpose of signals in IPC?

  • A) Synchronize data exchange between processes.
  • B) Provide bidirectional communication channels.
  • C) Notify processes about specific events or interrupts asynchronously.
  • D) Manage shared memory access among processes.
C) Notify processes about specific events or interrupts asynchronously. Explanation

4. Which IPC mechanism is best suited for communication between processes on different computers in a networked environment?

  • A) Signals
  • B) Message Queues
  • C) Shared Memory
  • D) Sockets
D) Sockets Explanation

5. What happens if a process attempts to write to a full pipe with no reader?

  • A) The data is lost.
  • B) The process is suspended until space is available in the pipe.
  • C) The data overflows to the system memory.
  • D) The process terminates with an error.
B) The process is suspended until space is available in the pipe. Explanation