Operating System (3140702) MCQs

MCQs of Inter Process Communication

Showing 11 to 20 out of 50 Questions
11.
Which of the following conditions must be satisfied to solve the critical section problem?
(a) Mutual Exclusion
(b) Progress
(c) Bounded Waiting
(d) All of the mentioned
Answer:

Option (d)

12.
Mutual exclusion implies that ____________
(a) if a process is executing in its critical section, then no other process must be executing in their critical sections
(b) if a process is executing in its critical section, then other processes must be executing in their critical sections
(c) if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
(d) None of the mentioned
Answer:

Option (a)

13.
TestAndSet instruction is executed ____________
(a) periodically
(b) after a particular process
(c) atomically
(d) at the end of a process
Answer:

Option (c)

14.
Semaphore is a/an _______ to solve the critical section problem.
(a) hardware for a system
(b) special program for a system
(c) integer variable
(d) program
Answer:

Option (c)

15.
The signal operation of the semaphore basically works on the basic _______ system call.
(a) continue()
(b) wakeup()
(c) getup()
(d) start()
Answer:

Option (b)

16.
What are the two kinds of semaphores?
(a) Mutex & Counting
(b) Binary & Counting
(c) Counting & Decimal
(d) Decimal & Binary
Answer:

Option (b)

17.
A binary semaphore is a semaphore with integer values ____________
(a) 1
(b) -1
(c) 0.5
(d) 0.8
Answer:

Option (a)

18.
Semaphores are mostly used to implement ____________
(a) System calls
(b) IPC mechanisms
(c) System protection
(d) None of the mentioned
Answer:

Option (b)

19.
The bounded buffer problem is also known as ____________
(a) Readers – Writers problem
(b) Dining – Philosophers problem
(c) Producer – Consumer problem
(d) None of the mentioned
Answer:

Option (c)

20.
In the bounded buffer problem, there are the empty and full semaphores that ____________
(a) count the number of empty and full buffers (slots)
(b) count the number of empty and full memory spaces
(c) count the number of empty and full queues
(d) None of the mentioned
Answer:

Option (a)

Showing 11 to 20 out of 50 Questions