Common Concurrency Mechanisms Flashcards

1
Q

This involves an integer value that is used for signaling processes. Only three (3) operations may be performed on a semaphore, all of which are atomic: initialize, decrement, increment.

This concurrency mechanism is also known as the general semaphore

A

Couting Semaphore

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

This is a semaphore that only takes the values zero and one.

A

Binary Semaphore

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

This mechanism is similar to a binary semaphore. The key difference between the two is that the process that locks the mutex must be the one to unlock it, and only the holder of the lock can operate

A

Mutual Exclusion (Mutex) Lock

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

This is a data type that is used to block a process or a thread until a specific condition is true

A

Condition Variable

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

This is a programming construct that encapsulates variables, access procedures, and initialization code within an abstract data type.

A

Monitor

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

It is a memory word used as a synchronization mechanism

A

Event Flag

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

This mechanism is considered as a means for two (2) processes to exchange information, and that may be used for process synchronization

A

Mailbox or Message Passing

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

This is a mechanism in which a process executes in an infinite loop waiting for the value of a lock variable to indicate availability

A

Spinlock

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