Top 550+ Solved Operating System (OS) MCQ Questions Answer

From 76 to 90 of 659

Q. 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. none of the mentioned

  • c. integer variable

Q. What are the two atomic operations permissible on semaphores?

a. wait

b. stop

c. hold

d. none of the mentioned

  • a. wait

Q. What are Spinlocks?

a. cpu cycles wasting locks over critical sections of programs

b. locks that avoid time wastage in context switches

c. locks that work better on multiprocessor systems

d. all of the mentioned

  • d. all of the mentioned

Q. What is the main disadvantage of spinlocks?

a. they are not sufficient for many process

b. they require busy waiting

c. they are unreliable sometimes

d. they are too complex for programmers

  • b. they require busy waiting

Q. If the semaphore value is negative

a. its magnitude is the number of processes waiting on that semaphore

b. it is invalid

c. no operation can be further performed on it until the signal operation is performed on it

d. none of the mentioned

  • a. its magnitude is the number of processes waiting on that semaphore

Q. The code that changes the value of the semaphore is                          

a. remainder section code

b. non – critical section code

c. critical section code

d. none of the mentioned

  • c. critical section code

Q. What will happen if a non-recursive mutex is locked more than once?

a. starvation

b. deadlock

c. aging

d. signaling

  • b. deadlock

Q. What is a semaphore?

a. is a binary mutex

b. must be accessed from only one process

c. can be accessed from multiple processes

d. none of the mentioned

  • c. can be accessed from multiple processes

Q. What are the two kinds of semaphores?

a. mutex & counting

b. binary & counting

c. counting & decimal

d. decimal & binary

  • b. binary & counting

Q. What is a mutex?

a. is a binary mutex

b. must be accessed from only one process

c. can be accessed from multiple processes

d. none of the mentioned

  • b. must be accessed from only one process

Q. Semaphores are mostly used to implement

a. system calls

b. ipc mechanisms

c. system protection

d. none of the mentioned

  • b. ipc mechanisms

Q. 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

  • c. producer – consumer problem
Subscribe Now

Get All Updates & News