SSC Multi-Tasking Non-Technical Staff Model Exams in Telugu

AP Grama Sachivalayam 2023 Free Test Series in Telugu (14,523 Vacancies)

Digital Assistant 2023 PART B - 100 Marks All Topics MCQs

Semaphores 2 | Operating System Questions and Answers

1.

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

   A.) Signaling
   B.) Starvation
   C.) Deadlock
   D.) Aging

Answer: Option 'C'

Deadlock

2.

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 these

Answer: Option 'C'

can be accessed from multiple processes

3.

The two kinds of semaphores are :

   A.) mutex & counting
   B.) binary & counting
   C.) counting & decimal
   D.) decimal & binary

Answer: Option 'B'

binary & counting

4.

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 these

Answer: Option 'B'

must be accessed from only one process

5.

At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore.The resulting value of the semaphore is : (GATE 1987)

   A.) 42
   B.) 2
   C.) 7
   D.) 12

Answer: Option 'B'

2
P represents Wait and V represents Signal. P operation will decrease the value by 1 everytime and V operation will increase the value by 1 everytime.

6.

A binary semaphore is a semaphore with integer values :

   A.) 1
   B.) -1
   C.) 1.5
   D.) 2.5

Answer: Option 'A'

1

7.

Semaphores are mostly used to implement :

   A.) System calls
   B.) IPC mechanisms
   C.) System protection
   D.) None of these

Answer: Option 'B'

IPC mechanisms

8.

Spinlocks are intended to provide __________ only.

   A.) Mutual Exclusion
   B.) Bounded Waiting
   C.) Aging
   D.) Progress

Answer: Option 'B'

Bounded Waiting


Semaphores 2 | Operating System Questions and Answers Download Pdf

Recent Posts