chapter 6 synchronization Flashcards

1
Q

if
Two or more processes/threads manipulate a shared resource
concurrently, and
The outcome of the execution depends on the particular order
in which the access takes place

A

it it is called racecondition

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

____________ is needed to prevent race conditions from happening

A

Synchronization

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

To avoid race conditions, the execution of critical section must be

A

mutually exclusive

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

The _____________ is to design a protocol with which processes can use to cooperate and ensure mutual exclusion

A

critical-section problem

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

A __________ is a section of code in which a process accesses shared resources

A

critical section (CS)

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

A critical section protocol consists of two parts

A

entry section
exit section

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

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

A

Mutual Exclusion
Progress
Bounded Waiting

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

If a process P is executing in its critical section, no other processes can be executing in their corresponding critical sections

A

this condition is called mutual exclusion

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

If a process P is executing in its critical section, no other processes can be executing in their corresponding critical sections (it should not block other process from accessing the cs).

A

Progress

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

After a process made a request to enter its critical section and before it is granted the permission to enter, there exists a bound on the number of turns that other processes are allowed to enter

A

bounded waiting

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

________ – allows preemption of the process when running in kernel mode

A

Preemptive

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

__________ – runs until exits kernel mode, blocks, or voluntarily yields CPU

A

Non-preemptive

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