
OS Process synchronization
Authored by Abhishek Sharma
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called ________
a) dynamic condition
b) race condition
c) essential condition
d) critical condition
a
b
c
d
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following option is suitable when a process is executing in its critical section, then no other processes can be executing in their critical section
A. mutual exclusion
B. critical exclusion
C. synchronous exclusion
D. d asynchronous exclusion
a
b
c
d
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A semaphore is a shared integer variable that can not
A. drop below zero
B. be more than zero
C. drop below one
D. that cannot be more than one
a
b
c
d
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
All processes share a semaphore variable mutex, initialized to 1. Each process must execute wait(mutex) before entering the critical section and signal(mutex) afterward.
Suppose a process executes in the following manner.
signal(mutex); .
.... critical section .....
wait(mutex);
a deadlock will occur
processes will starve to enter critical section
several processes maybe executing in their critical section
all of the mentioned
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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?
Mutual exclusion but not progress
Progress but not mutual exclusion
Neither mutual exclusion nor progress
Both mutual exclusion and progress
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What are the two kinds of semaphores?
a) mutex & counting
b) binary & counting
c) counting & decimal
d) decimal & binary
a
b
c
d
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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?
a) 42
b) 2
c) 7
d) 12
a
b
c
d
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?