Interprocess Communication
Interprocess Communication
1. What type of process does not share data with other processes?
A) Cooperating Process
B) Independent Process
C) Concurrent Process
D) Parallel Process
Answer: B
2. Which of the following is NOT a reason for cooperating processes?
A) Information sharing
B) Computation speedup
C) Resource wastage
D) Modularity
Answer: C
3. In shared memory IPC, what must processes ensure?
A) They do not communicate
B) To generate data
C) To synchronize processes
D) To manage memory
Answer: B
6. What type of buffer allows the producer to never wait?
A) Bounded buffer
B) Unbounded buffer
C) Zero capacity buffer
D) Shared buffer
Answer: B
7. Which of the following is a characteristic of direct communication?
A) Messages are sent to mailboxes
B) A shared mailbox
C) Direct links
D) Synchronous operations
Answer: B
9. What type of message passing is considered synchronous?
A) Non-blocking send
B) Blocking send
C) Asynchronous receive
D) Non-blocking receive
Answer: B
10. Which of the following socket types is connection-oriented?
A) UDP
B) TCP
C) MulticastSocket
D) None of the above
Answer: B
11. What is the purpose of a socket in client-server communication?
A) To store data
B) Shared Memory
C) Both are equally fast
D) None of the above
Answer: B
15. What is a key feature of message passing in a distributed system?
A) Processes share the same memory space