Synchronization Flashcards

1
Q

If a process is executing in its critical sections. then no others processes can be executing in their critical section. This condition is called

a/ critical section
b/ Synchronous exclusion
c/ Asynchronous exclusion
d/ Mutual exclusion
e/ None of the mentioned

A

d/ Mutual exclusion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Q
Why does it need Synchronisation in OS?
a/ Prevent computer cash
b/ Prevent file corrupt
c/ Prevent race conditions from happening
d/ Prevent hardware broken
e/ None of the mentioned above

A

c/ Prevent race conditions from happening

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Q
3/ No process should have to wait forever to enter its critical section. This condition is called….

a) Mutual exclusion
b) Critical exclusion
c/ Progess
d/ Bounded waiting
e/ None of the mentioned

A

d/ Bounded waiting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A good solution to the critical section problem must satisfy the following conditions

a. Mutual Exclusion
b. Progress
c. Unbounded waiting
d. Bounded waiting
e. a,b, & d

A

e. a,b, & d
Mutual Exclusion
Progress
Bounded waiting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Concurrent access to shared data may result in……….

a) Data consistency
b) Deadlock
c) data insecurity
d) Data inconsistency
e) Starvation

A

d) Data inconsistency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access take place, is called……

a. Dynamic condition
b. Essential condition
c. Deadlock
d. Critical condition
e. Race condition

A

e. Race condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

No process running outside its critical section may block others processes. This condition is called….

a . Mutual exclusion
b. Critical exclusion
c. Progress
d. Bounded waiting
e. None of the mentioned above

A

c. Progress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The segment of coed in which the process may change common variable, update tables,, write into files in known as….

a program
b critical section
c non - critical section
d. Synchronisation
e. All of the mentioned

A

b critical section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly