Week 7 Flashcards

(13 cards)

1
Q

Test and set lock

A

A hardware instruction that locks memory locations while they are being accessed by a process

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

Race Condition

A

The system attempts to perform two or more operations at the same time, but due to the underlying context switching and scheduling implementations by the OS, the ordering of these operations is not guaranteed. The result of the operations changes as a function of changes in ordering.

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

Semaphore

A

A semaphore is a kernel object with an integer value. It supports two operations, P and V, which modify the integer value

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

P

A

One of the operations of a semaphore. If the semaphore’s value is greater than zero, decrement. Otherwise, wait until the value is greater than zero and then decrement. Sometimes it is also called wait.

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

V

A

One of the operations of a semaphore. Increment the value of the semaphore. Sometimes it is also called signal or post.

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

Binary Semaphore

A

A semaphore that saturates at an integer value of 1

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

Counting Semaphore

A

A semaphore that saturates as an integer value of N, for N greater than or equal to 1

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

Waiting Queuue

A

Processes or threads waiting to enter the critical section are notified, or “woken up”, when the process currently using the critical section exits. This strategy helps eliminate the need for busy waiting in the semaphore implementation.

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

Deadlock

A

Two or more processes are waiting indefinitely for an event that can be

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

Monitors

A

A high-level abstraction that provides a convenient and effective mechanism for process synchronization. Only one process may be active within the monitor at a time.

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

Condition Variables

A

A primitive with two functions, wait and signal.

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

Wait

A

A condition variable function called by a process that waits for a condition to be true

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

Signal

A

A condition variable function that wakes up a process waiting on the condition to be true

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