Deck 5: Concurrency: Mutual Exclusion and Synchronization

ملء الشاشة (f)
exit full mode
سؤال
Atomicity guarantees isolation from concurrent processes.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
It is possible for one process to lock the mutex and for another process to unlock it.
سؤال
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.
سؤال
When processes cooperate by communication, the various processes participate in a common effort that links all of the processes.
سؤال
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.
سؤال
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
سؤال
The management of multiple processes within a uniprocessor system is __________ .

A) multiprogramming
B) structured applications
C) distributed processing
D) multiprocessing
سؤال
The case of cooperation by sharing covers processes that interact with other processes without being explicitly aware of them.
سؤال
Processes need to be synchronized to enforce mutual exclusion.
سؤال
As an extension of the principles of modular design and structured programming, some applications can be effectively programmed as a set of concurrent processes.
سؤال
The central themes of operating system design are all concerned with the management of processes and threads.
سؤال
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
سؤال
It is possible in a single-processor system to not only interleave the execution of multiple processes but also to overlap them.
سؤال
One of the most common problems faced in concurrent processing is the producer/consumer problem.
سؤال
A process that is waiting for access to a critical section does not consume processor time.
سؤال
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.
سؤال
Concurrent processes do not come into conflict with each other when they are competing for the use of the same resource.
سؤال
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
سؤال
A means for two processes to exchange information is with the use of ___________ .

A) spinlocks
B) event flags
C) condition variables
D) messages
سؤال
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.
سؤال
__________ are memory words used as a synchronization mechanism.

A) Semaphores
B) Event flags
C) Counting semaphores
D) Mailboxes
سؤال
In the case of __________ , processes are sharing resources without being aware of the other processes.
سؤال
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 __________ .
سؤال
__________ 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.
سؤال
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
سؤال
A __________ is a programming language construct that encapsulates variables, access procedures, and initialization code within an abstract data type.
سؤال
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
سؤال
_________ arises in three different contexts: multiple applications, structured applications, and operating system structure.
سؤال
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
سؤال
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
سؤال
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
سؤال
A ___________ is a semaphore that takes on only the values of 0 and 1.
سؤال
A _________ is an integer value used for signaling among processes.

A) semaphore
B) message
C) mutex
D) atomic operation
سؤال
In the case of competing processes three control problems must be faced: mutual exclusion, deadlock, and __________ .
سؤال
_________ 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.
سؤال
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
سؤال
_________ was invented to allow processing time to be dynamically shared among a number of active applications.
سؤال
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 __________ .
سؤال
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
سؤال
_________ 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
سؤال
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.
سؤال
Only three operations may be performed on a semaphore: initialize, increment, and __________ .
سؤال
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.
سؤال
A monitor supports synchronization by the use of __________ that are contained within the monitor and accessible only within the monitor.
سؤال
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 Deck
1/45
auto play flashcards
العب
simple tutorial
ملء الشاشة (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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
7
The management of multiple processes within a uniprocessor system is __________ .

A) multiprogramming
B) structured applications
C) distributed processing
D) multiprocessing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
8
The case of cooperation by sharing covers processes that interact with other processes without being explicitly aware of them.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
9
Processes need to be synchronized to enforce mutual exclusion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
11
The central themes of operating system design are all concerned with the management of processes and threads.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
14
One of the most common problems faced in concurrent processing is the producer/consumer problem.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
15
A process that is waiting for access to a critical section does not consume processor time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
21
__________ are memory words used as a synchronization mechanism.

A) Semaphores
B) Event flags
C) Counting semaphores
D) Mailboxes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
22
In the case of __________ , processes are sharing resources without being aware of the other processes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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 __________ .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
26
A __________ is a programming language construct that encapsulates variables, access procedures, and initialization code within an abstract data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
28
_________ arises in three different contexts: multiple applications, structured applications, and operating system structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
32
A ___________ is a semaphore that takes on only the values of 0 and 1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
33
A _________ is an integer value used for signaling among processes.

A) semaphore
B) message
C) mutex
D) atomic operation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
34
In the case of competing processes three control problems must be faced: mutual exclusion, deadlock, and __________ .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
37
_________ was invented to allow processing time to be dynamically shared among a number of active applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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 __________ .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
42
Only three operations may be performed on a semaphore: initialize, increment, and __________ .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
44
A monitor supports synchronization by the use of __________ that are contained within the monitor and accessible only within the monitor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 45 في هذه المجموعة.