synch lock mutex Flashcards

1
Q

________ restricts access to a shared variable to only one thread at any given time.

A

mutual exclusion

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

________ is characteristic of deadlocked systems.

A

circular waiting

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

The strategy of denying the “circular-wait” condition ________.

A

creates a linear ordering of resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
The solution to the Dining Philosophers problem must \_\_\_\_\_\_\_\_.
prevent deadlock
prevent starvation
ensure mutual exclusion
all of the above
A

all of the above

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

If a process is given the task of waiting for an event to occur, and if the system includes no provision for signaling that event, then we have ________.

A

one process deadlock

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

________ code is not modified as it executes and may be shared by several processes simultaneously.

A

re entrant

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

Preventing more than one thread from accessing a shared variable simultaneously is known as ________ access to the shared variable.

A

serializing

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

Threads that operate independently of one another but must occasionally interact to perform cooperative tasks are said to execute ________.

A

asynchronously

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