Deck 5: Concurrency: Mutual Exclusion and Synchronization

Full screen (f)
exit full mode
Question
Atomicity guarantees isolation from concurrent processes.
Use Space or
up arrow
down arrow
to flip the card.
Question
It is possible for one process to lock the mutex and for another process to unlock it.
Question
Two or more processes can cooperate by means of simple signals, such that a process can be forced to stop at a specified place until it has received a specific signal.
Question
When processes cooperate by communication, the various processes participate in a common effort that links all of the processes.
Question
Race condition is a situation in which two or more processes continuously change their states in response to changes in the other process(es) without doing any useful work.
Question
A semaphore that does not specify the order in which processes are removed from the queue is a _________ semaphore.

A) weak
B) general
C) strong
D) binary
Question
The management of multiple processes within a uniprocessor system is __________ .

A) multiprogramming
B) structured applications
C) distributed processing
D) multiprocessing
Question
The case of cooperation by sharing covers processes that interact with other processes without being explicitly aware of them.
Question
Processes need to be synchronized to enforce mutual exclusion.
Question
As an extension of the principles of modular design and structured programming, some applications can be effectively programmed as a set of concurrent processes.
Question
The central themes of operating system design are all concerned with the management of processes and threads.
Question
A situation in which a runnable process is overlooked indefinitely by the scheduler, although it is able to proceed, is __________ .

A) mutual exclusion
B) deadlock
C) starvation
D) livelock
Question
It is possible in a single-processor system to not only interleave the execution of multiple processes but also to overlap them.
Question
One of the most common problems faced in concurrent processing is the producer/consumer problem.
Question
A process that is waiting for access to a critical section does not consume processor time.
Question
The functioning of a process, and the output it produces, must be independent of the speed at which its execution is carried out relative to the speed of other concurrent processes.
Question
Concurrent processes do not come into conflict with each other when they are competing for the use of the same resource.
Question
The requirement that when one process is in a critical section that accesses shared resources, no other process may be in a critical section that accesses any of those shared resources is _________ .

A) critical section
B) livelock
C) mutual exclusion
D) atomic operation
Question
A means for two processes to exchange information is with the use of ___________ .

A) spinlocks
B) event flags
C) condition variables
D) messages
Question
The sharing of main memory among processes is useful to permit efficient and close interaction among processes because such sharing does not lead to any problems.
Question
__________ are memory words used as a synchronization mechanism.

A) Semaphores
B) Event flags
C) Counting semaphores
D) Mailboxes
Question
In the case of __________ , processes are sharing resources without being aware of the other processes.
Question
A situation in which two or more processes are unable to proceed because each is waiting for one of the others to do something is a __________ .
Question
__________ is a function or action implemented as a sequence of one or more instructions that appears to be indivisible; no other process can see an intermediate state or interrupt the operations.
Question
A _________ is a data type that is used to block a process or thread until a particular condition is true.

A) deadlock
B) general semaphore
C) condition variable
D) mutex
Question
A __________ is a programming language construct that encapsulates variables, access procedures, and initialization code within an abstract data type.
Question
A _________ occurs when multiple processes or threads read and write data items so that the final result depends on the order of execution of instructions in the multiple processes.

A) atomic operation
B) race condition
C) livelock
D) deadlock
Question
_________ arises in three different contexts: multiple applications, structured applications, and operating system structure.
Question
Probably the most useful combination, __________ allows a process to send one or more messages to a variety of destinations as quickly as possible.

A) blocking send, blocking receive
B) nonblocking send, blocking receive
C) nonblocking send, nonblocking receive
D) blocking send, nonblocking receive
Question
A __________ relationship allows multiple server processes to provide concurrent service to multiple clients.

A) many-to-many
B) one-to-many
C) many-to-one
D) one-to-one
Question
The term _________ refers to a technique in which a process can do nothing until it gets permission to enter its critical section but continues to execute an instruction or set of instructions that tests the appropriate variable to gain entrance.

A) spin waiting
B) general semaphore
C) critical resource
D) message passing
Question
A ___________ is a semaphore that takes on only the values of 0 and 1.
Question
A _________ is an integer value used for signaling among processes.

A) semaphore
B) message
C) mutex
D) atomic operation
Question
In the case of competing processes three control problems must be faced: mutual exclusion, deadlock, and __________ .
Question
_________ is a section of code within a process that requires access to shared resources and that must not be executed while another process is in a corresponding section of code.
Question
A semaphore whose definition includes the policy that the process that has been blocked the longest is released from the queue first is called a __________ semaphore.

A) general
B) strong
C) weak
D) counting
Question
_________ was invented to allow processing time to be dynamically shared among a number of active applications.
Question
A situation in which multiple threads or processes read and write a shared data item and the final result depends on the relative timing of their execution is a __________ .
Question
The _________ is a programming language construct that provides equivalent functionality to that of semaphores and is easier to control.

A) atomic operation
B) coroutine
C) critical section
D) monitor
Question
_________ is when the sequence of instruction is guaranteed to execute as a group, or not execute at all, having no visible effect on system state.

A) Critical section
B) Mutual exclusion
C) Atomic operation
D) Starvation
Question
A _________ is a mutual exclusion mechanism in which a process executes in an infinite loop waiting for the value of a lock variable to indicate availability.
Question
Only three operations may be performed on a semaphore: initialize, increment, and __________ .
Question
In the case of _________ , messages are not sent directly from sender to receiver but rather are sent to a shared data structure consisting of queues that can temporarily hold messages.
Question
A monitor supports synchronization by the use of __________ that are contained within the monitor and accessible only within the monitor.
Question
The classic concurrency problem that involves multiple readers that can read from a shared data area when no single writer is exclusively writing to it is the _________ Problem.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/45
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 5: Concurrency: Mutual Exclusion and Synchronization
1
Atomicity guarantees isolation from concurrent processes.
True
2
It is possible for one process to lock the mutex and for another process to unlock it.
False
3
Two or more processes can cooperate by means of simple signals, such that a process can be forced to stop at a specified place until it has received a specific signal.
True
4
When processes cooperate by communication, the various processes participate in a common effort that links all of the processes.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
5
Race condition is a situation in which two or more processes continuously change their states in response to changes in the other process(es) without doing any useful work.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
6
A semaphore that does not specify the order in which processes are removed from the queue is a _________ semaphore.

A) weak
B) general
C) strong
D) binary
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
7
The management of multiple processes within a uniprocessor system is __________ .

A) multiprogramming
B) structured applications
C) distributed processing
D) multiprocessing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
8
The case of cooperation by sharing covers processes that interact with other processes without being explicitly aware of them.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
9
Processes need to be synchronized to enforce mutual exclusion.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
10
As an extension of the principles of modular design and structured programming, some applications can be effectively programmed as a set of concurrent processes.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
11
The central themes of operating system design are all concerned with the management of processes and threads.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
12
A situation in which a runnable process is overlooked indefinitely by the scheduler, although it is able to proceed, is __________ .

A) mutual exclusion
B) deadlock
C) starvation
D) livelock
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
13
It is possible in a single-processor system to not only interleave the execution of multiple processes but also to overlap them.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
14
One of the most common problems faced in concurrent processing is the producer/consumer problem.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
15
A process that is waiting for access to a critical section does not consume processor time.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
16
The functioning of a process, and the output it produces, must be independent of the speed at which its execution is carried out relative to the speed of other concurrent processes.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
17
Concurrent processes do not come into conflict with each other when they are competing for the use of the same resource.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
18
The requirement that when one process is in a critical section that accesses shared resources, no other process may be in a critical section that accesses any of those shared resources is _________ .

A) critical section
B) livelock
C) mutual exclusion
D) atomic operation
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
19
A means for two processes to exchange information is with the use of ___________ .

A) spinlocks
B) event flags
C) condition variables
D) messages
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
20
The sharing of main memory among processes is useful to permit efficient and close interaction among processes because such sharing does not lead to any problems.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
21
__________ are memory words used as a synchronization mechanism.

A) Semaphores
B) Event flags
C) Counting semaphores
D) Mailboxes
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
22
In the case of __________ , processes are sharing resources without being aware of the other processes.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
23
A situation in which two or more processes are unable to proceed because each is waiting for one of the others to do something is a __________ .
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
24
__________ is a function or action implemented as a sequence of one or more instructions that appears to be indivisible; no other process can see an intermediate state or interrupt the operations.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
25
A _________ is a data type that is used to block a process or thread until a particular condition is true.

A) deadlock
B) general semaphore
C) condition variable
D) mutex
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
26
A __________ is a programming language construct that encapsulates variables, access procedures, and initialization code within an abstract data type.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
27
A _________ occurs when multiple processes or threads read and write data items so that the final result depends on the order of execution of instructions in the multiple processes.

A) atomic operation
B) race condition
C) livelock
D) deadlock
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
28
_________ arises in three different contexts: multiple applications, structured applications, and operating system structure.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
29
Probably the most useful combination, __________ allows a process to send one or more messages to a variety of destinations as quickly as possible.

A) blocking send, blocking receive
B) nonblocking send, blocking receive
C) nonblocking send, nonblocking receive
D) blocking send, nonblocking receive
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
30
A __________ relationship allows multiple server processes to provide concurrent service to multiple clients.

A) many-to-many
B) one-to-many
C) many-to-one
D) one-to-one
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
31
The term _________ refers to a technique in which a process can do nothing until it gets permission to enter its critical section but continues to execute an instruction or set of instructions that tests the appropriate variable to gain entrance.

A) spin waiting
B) general semaphore
C) critical resource
D) message passing
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
32
A ___________ is a semaphore that takes on only the values of 0 and 1.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
33
A _________ is an integer value used for signaling among processes.

A) semaphore
B) message
C) mutex
D) atomic operation
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
34
In the case of competing processes three control problems must be faced: mutual exclusion, deadlock, and __________ .
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
35
_________ is a section of code within a process that requires access to shared resources and that must not be executed while another process is in a corresponding section of code.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
36
A semaphore whose definition includes the policy that the process that has been blocked the longest is released from the queue first is called a __________ semaphore.

A) general
B) strong
C) weak
D) counting
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
37
_________ was invented to allow processing time to be dynamically shared among a number of active applications.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
38
A situation in which multiple threads or processes read and write a shared data item and the final result depends on the relative timing of their execution is a __________ .
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
39
The _________ is a programming language construct that provides equivalent functionality to that of semaphores and is easier to control.

A) atomic operation
B) coroutine
C) critical section
D) monitor
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
40
_________ is when the sequence of instruction is guaranteed to execute as a group, or not execute at all, having no visible effect on system state.

A) Critical section
B) Mutual exclusion
C) Atomic operation
D) Starvation
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
41
A _________ is a mutual exclusion mechanism in which a process executes in an infinite loop waiting for the value of a lock variable to indicate availability.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
42
Only three operations may be performed on a semaphore: initialize, increment, and __________ .
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
43
In the case of _________ , messages are not sent directly from sender to receiver but rather are sent to a shared data structure consisting of queues that can temporarily hold messages.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
44
A monitor supports synchronization by the use of __________ that are contained within the monitor and accessible only within the monitor.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
45
The classic concurrency problem that involves multiple readers that can read from a shared data area when no single writer is exclusively writing to it is the _________ Problem.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 45 flashcards in this deck.