Menu

Question Discussion & Solution

MCQ
Q.
Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1 and S2 are randomly assigned.
Method used by P1 :
while(S1==S2);
Critical section
S1 = S2;
 
Method used by P2 :
while(S1!=S2);
Critical section
S2 = not(S1);
Which of the following statements describes properties achieved?

forum Community Discussion

speaker_notes_off

No discussions yet. Be the first to start!

You must be logged in to participate in the discussion.

login Login to Discuss

auto_awesome Similar Questions

MCQ
1.
If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called?
forum Discussion
MCQ
2.
The circular wait condition can be prevented by ____________
forum Discussion
MCQ
3.
Spinlocks are intended to provide __________ only.
forum Discussion
MCQ
4.
The program follows to use a shared binary semaphore T.
Process A  
int Y;            
A1: Y = X*2;      
A2: X = Y;        
signal(T);        
 
Process B
int Z;
B1: wait(T);
B2: Z = X+1;
X = Z;
T is set to 0 before either process begins execution and, as before, X is set to 5. Now, how many different values of X are possible after both processes finish executing?
forum Discussion
MCQ
5.
Which one of the following is a synchronization tool?
forum Discussion

category More Operating System Topics

article

Introduction to Operating System

format_list_bulleted 5 MCQs
article

Types

format_list_bulleted 16 MCQs
article

Services

format_list_bulleted 2 MCQs
article

Structures

format_list_bulleted 3 MCQs
article

Processes

format_list_bulleted 58 MCQs
article

Threads

format_list_bulleted 47 MCQs
article

CPU Scheduling

format_list_bulleted 79 MCQs
article

Process Synchronization

format_list_bulleted 117 MCQs
article

Memory Management

format_list_bulleted 179 MCQs
article

Storage Management

format_list_bulleted 283 MCQs
article

Input Output Systems

format_list_bulleted 55 MCQs
article

Networking

format_list_bulleted 36 MCQs
article

Distributed Operating System

format_list_bulleted 73 MCQs
article

Protection and Security

format_list_bulleted 123 MCQs
article

Unix

format_list_bulleted 145 MCQs
article

Linux

format_list_bulleted 160 MCQs
article

MS Windows

format_list_bulleted 1 MCQs
article

Mixed

format_list_bulleted 10 MCQs
article

Operating Systems Overview

format_list_bulleted 0 MCQs
article

Process Management

format_list_bulleted 0 MCQs
article

Finding and Processing Files

format_list_bulleted 0 MCQs
article

File Management

format_list_bulleted 0 MCQs