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

The Critical Section (CS) Problem and Solutions - Operating System Questions and Answers

1.

Concurrent access to shared data may result in :

   A.) data consistency
   B.) data insecurity
   C.) data inconsistency
   D.) none of these

Answer: Option 'C'

data inconsistency

2.

A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called :

   A.) data consistency
   B.) race condition
   C.) aging
   D.) starvation

Answer: Option 'B'

race condition

3.

The segment of code in which the process may change common variables, update tables, write into files is known as :

   A.) program
   B.) critical section
   C.) non – critical section
   D.) synchronizing

Answer: Option 'B'

critical section

4.

The following three conditions must be satisfied to solve the critical section problem :

   A.) Mutual Exclusion
   B.) Progress
   C.) Bounded Waiting
   D.) All of these

Answer: Option 'D'

All of these

5.

 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 these

Answer: Option 'A'

if a process is executing in its critical section, then no other process must be executing in their critical sections

6.

Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section :

   A.) after a process has made a request to enter its critical section and before the request is granted
   B.) when another process is in its critical section
   C.) before a process has made a request to enter its critical section
   D.) none of these

Answer: Option 'A'

after a process has made a request to enter its critical section and before the request is granted

7.

A minimum of _____ variable(s) is/are required to be shared between processes to solve the critical section problem.

   A.) one
   B.) two
   C.) three
   D.) four

Answer: Option 'B'

two

8.

In the bakery algorithm to solve the critical section problem :

   A.) each process is put into a queue and picked up in an ordered manner
   B.) each process receives a number (may or may not be unique) and the one with the lowest number is served next
   C.) each process gets a unique number and the one with the highest number is served next
   D.) each process gets a unique number and the one with the lowest number is served next

Answer: Option 'B'

each process receives a number (may or may not be unique) and the one with the lowest number is served next


The Critical Section (CS) Problem and Solutions - Operating System Questions and Answers Download Pdf

Recent Posts