Docsity

THE ART OF MULTIPROCESSOR PROGRAMMING, Exams of Computer Programming

Toggle sidebar
bg1
THE ART OF MULTIPROCESSOR
PROGRAMMING (2nd Edition)
Coverage includes concurrency, synchronization, correctness, progress guarantees, shared memory
and concurrent data structures.
1. Which term best matches the following description? The condition in which multiple tasks make
progress during overlapping periods.
A. Sequential consistency
B. Barrier
C. Concurrency
D. live lock
2. A student is asked to identify the concept described below. Which answer is correct? The
condition in which multiple tasks make progress during overlapping periods.
A. Blocking lock
B. Concurrency
C. Atomic operation
D. Concurrent queue
3. Which concept is most directly illustrated by this description? The condition in which multiple
tasks make progress during overlapping periods.
A. Concurrency
B. Lock-free progress
C. Test-and-set
D. Wait-free progress
4. In a test of core terminology, which option should be selected for the description below? The
condition in which multiple tasks make progress during overlapping periods.
A. False sharing
B. Concurrency
C. Compare-and-swap
D. Mutual exclusion
5. Which of the following names the principle or process described? The condition in which
multiple tasks make progress during overlapping periods.
A. Concurrency
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download THE ART OF MULTIPROCESSOR PROGRAMMING and more Exams Computer Programming in PDF only on Docsity!

THE ART OF MULTIPROCESSOR

PROGRAMMING (2nd Edition)

Coverage includes concurrency, synchronization, correctness, progress guarantees, shared memory and concurrent data structures.

1. Which term best matches the following description? The condition in which multiple tasks make progress during overlapping periods. A. Sequential consistency B. Barrier C. Concurrency D. live lock 2. A student is asked to identify the concept described below. Which answer is correct? The condition in which multiple tasks make progress during overlapping periods. A. Blocking lock B. Concurrency C. Atomic operation D. Concurrent queue 3. Which concept is most directly illustrated by this description? The condition in which multiple tasks make progress during overlapping periods. A. Concurrency B. Lock-free progress C. Test-and-set D. Wait-free progress 4. In a test of core terminology, which option should be selected for the description below? The condition in which multiple tasks make progress during overlapping periods. A. False sharing B. Concurrency C. Compare-and-swap D. Mutual exclusion 5. Which of the following names the principle or process described? The condition in which multiple tasks make progress during overlapping periods. A. Concurrency

B. Blocking lock C. Test-and-set D. Wait-free progress

6. A case study refers to the following: the condition in which multiple tasks make progress during overlapping periods. Which term is being described? A. Monitor B. Work stealing C. Mutual exclusion **D. Concurrency

  1. When analysing a problem, the relevant principle is: the condition in which multiple tasks make progress during overlapping periods. Which term is being described?** A. False sharing B. Concurrency C. Race condition D. Concurrent queue 8. A course assessment asks about this feature: the condition in which multiple tasks make progress during overlapping periods. Which term is being described? A. Concurrency B. Lock-free progress C. Livelock D. Obstruction-free progress 9. In a classroom discussion, the concept is explained as: the condition in which multiple tasks make progress during overlapping periods. Which term is being described? A. Concurrency B. Livelock C. Monitor D. Hazard pointer 10. A textbook review highlights this definition: the condition in which multiple tasks make progress during overlapping periods. Which term is being described? A. Concurrency B. Lock-free progress C. Read-write lock D. Semaphore

B. Sequential consistency C. Parallelism D. Semaphore

17. When analysing a problem, the relevant principle is: the simultaneous execution of multiple computations. Which term is being described? A. Monitor B. Linearizability C. Parallelism D. Deadlock 18. A course assessment asks about this feature: the simultaneous execution of multiple computations. Which term is being described? A. False sharing B. Aba problem C. Parallelism D. Hazard pointer 19. In a classroom discussion, the concept is explained as: the simultaneous execution of multiple computations. Which term is being described? A. Hazard pointer B. Mutual exclusion C. Wait-free progress **D. Parallelism

  1. A textbook review highlights this definition: the simultaneous execution of multiple computations. Which term is being described?** A. Mutual exclusion B. Test-and-set C. Parallelism D. Memory consistency model 21. Which term best matches the following description? The property that only one thread at a time enters a protected critical section. A. Mutual exclusion B. Spin lock C. Critical section D. Aba problem

22. A student is asked to identify the concept described below. Which answer is correct? The property that only one thread at a time enters a protected critical section. A. Obstruction-free progress B. Spin lock C. Concurrent queue **D. Mutual exclusion

  1. Which concept is most directly illustrated by this description? The property that only one thread at a time enters a protected critical section.** A. Linearizability B. Critical section C. Hazard pointer **D. Mutual exclusion
  2. In a test of core terminology, which option should be selected for the description below? The property that only one thread at a time enters a protected critical section.** A. Semaphore B. Barrier C. Mutual exclusion D. Critical section 25. Which of the following names the principle or process described? The property that only one thread at a time enters a protected critical section. A. Test-and-set B. Mutual exclusion C. Monitor D. Semaphore 26. A case study refers to the following: the property that only one thread at a time enters a protected critical section. Which term is being described? A. Mutual exclusion B. Lock-free progress C. Test-and-set D. Compare-and-swap 27. When analysing a problem, the relevant principle is: the property that only one thread at a time enters a protected critical section. Which term is being described? A. Wait-free progress

33. Which concept is most directly illustrated by this description? A code region that accesses shared state and requires coordination. A. Critical section B. Parallelism C. Sequential consistency D. False sharing 34. In a test of core terminology, which option should be selected for the description below? A code region that accesses shared state and requires coordination. A. Spin lock B. Critical section C. Test-and-set D. Deadlock 35. Which of the following names the principle or process described? A code region that accesses shared state and requires coordination. A. Read-write lock B. Critical section C. Blocking lock D. Obstruction-free progress 36. A case study refers to the following: a code region that accesses shared state and requires coordination. Which term is being described? A. Critical section B. Obstruction-free progress C. Atomic operation D. Wait-free progress 37. When analysing a problem, the relevant principle is: a code region that accesses shared state and requires coordination. Which term is being described? A. Parallelism B. Compare-and-swap C. Cache coherence **D. Critical section

  1. A course assessment asks about this feature: a code region that accesses shared state and requires coordination. Which term is being described?** A. Memory consistency model

B. Atomic operation C. Critical section D. Aba problem

39. In a classroom discussion, the concept is explained as: a code region that accesses shared state and requires coordination. Which term is being described? A. Deadlock B. Critical section C. Condition variable D. Blocking lock 40. A textbook review highlights this definition: a code region that accesses shared state and requires coordination. Which term is being described? A. Monitor B. Linearizability C. Critical section D. Concurrency 41. Which term best matches the following description? A result that depends on the unpredictable timing of concurrent operations. A. Linearizability B. Concurrency C. Test-and-set **D. Race condition

  1. A student is asked to identify the concept described below. Which answer is correct? A result that depends on the unpredictable timing of concurrent operations. A. Race condition** B. Deadlock C. Cache coherence D. Critical section 43. Which concept is most directly illustrated by this description? A result that depends on the unpredictable timing of concurrent operations. A. Semaphore B. Spin lock C. Condition variable D. Race condition

B. Race condition C. Barrier D. Semaphore

50. A textbook review highlights this definition: a result that depends on the unpredictable timing of concurrent operations. Which term is being described? A. Parallelism B. Obstruction-free progress C. Read-write lock **D. Race condition

  1. Which term best matches the following description? A state in which a set of threads wait indefinitely for one another.** A. Memory consistency model B. Deadlock C. Wait-free progress D. Lock-free progress 52. A student is asked to identify the concept described below. Which answer is correct? A state in which a set of threads wait indefinitely for one another. A. Deadlock B. Cache coherence C. Concurrent queue D. Mutual exclusion 53. Which concept is most directly illustrated by this description? A state in which a set of threads wait indefinitely for one another. A. Deadlock B. Concurrency C. Hazard pointer D. Atomic operation 54. In a test of core terminology, which option should be selected for the description below? A state in which a set of threads wait indefinitely for one another. A. Hazard pointer B. Deadlock C. Compare-and-swap D. Wait-free progress

55. Which of the following names the principle or process described? A state in which a set of threads wait indefinitely for one another. A. Memory consistency model B. Deadlock C. Monitor D. Work stealing 56. A case study refers to the following: a state in which a set of threads wait indefinitely for one another. Which term is being described? A. False sharing B. Condition variable C. Sequential consistency **D. Deadlock

  1. When analysing a problem, the relevant principle is: a state in which a set of threads wait indefinitely for one another. Which term is being described?** A. Condition variable B. Work stealing C. Aba problem **D. Deadlock
  2. A course assessment asks about this feature: a state in which a set of threads wait indefinitely for one another. Which term is being described? A. Deadlock** B. Cache coherence C. Parallelism D. Work stealing 59. In a classroom discussion, the concept is explained as: a state in which a set of threads wait indefinitely for one another. Which term is being described? A. Critical section B. Mutual exclusion C. Deadlock D. Lock-free progress 60. A textbook review highlights this definition: a state in which a set of threads wait indefinitely for one another. Which term is being described? A. Compare-and-swap

66. A case study refers to the following: a state in which threads remain active but make no useful progress. Which term is being described? A. Critical section B. Monitor C. Memory consistency model **D. Livelock

  1. When analysing a problem, the relevant principle is: a state in which threads remain active but make no useful progress. Which term is being described?** A. Condition variable B. Obstruction-free progress C. Livelock D. Sequential consistency 68. A course assessment asks about this feature: a state in which threads remain active but make no useful progress. Which term is being described? A. Memory consistency model B. Livelock C. Mutual exclusion D. Wait-free progress 69. In a classroom discussion, the concept is explained as: a state in which threads remain active but make no useful progress. Which term is being described? A. Blocking lock B. Livelock C. Hazard pointer D. Work stealing 70. A textbook review highlights this definition: a state in which threads remain active but make no useful progress. Which term is being described? A. Livelock B. Concurrency C. Linearizability D. False sharing 71. Which term best matches the following description? Indefinite postponement of a thread because others repeatedly obtain resources. A. Starvation

B. Hazard pointer C. Blocking lock D. Concurrent queue

72. A student is asked to identify the concept described below. Which answer is correct? Indefinite postponement of a thread because others repeatedly obtain resources. A. Compare-and-swap B. Work stealing C. Starvation D. Lock-free progress 73. Which concept is most directly illustrated by this description? Indefinite postponement of a thread because others repeatedly obtain resources. A. Starvation B. Concurrency C. Linearizability D. Compare-and-swap 74. In a test of core terminology, which option should be selected for the description below? Indefinite postponement of a thread because others repeatedly obtain resources. A. Blocking lock B. Monitor C. Starvation D. Critical section 75. Which of the following names the principle or process described? Indefinite postponement of a thread because others repeatedly obtain resources. A. Race condition B. Monitor C. Semaphore **D. Starvation

  1. A case study refers to the following: indefinite postponement of a thread because others repeatedly obtain resources. Which term is being described?** A. Race condition B. Concurrency C. Starvation D. Concurrent queue

A. Compare-and-swap B. Memory consistency model C. Obstruction-free progress D. Linearizability

83. Which concept is most directly illustrated by this description? The correctness condition that each operation appears to take effect at one instant between invocation and response. A. Hazard pointer B. Condition variable C. Linearizability D. Monitor 84. In a test of core terminology, which option should be selected for the description below? The correctness condition that each operation appears to take effect at one instant between invocation and response. A. Semaphore B. Livelock C. Linearizability D. Cache coherence 85. Which of the following names the principle or process described? The correctness condition that each operation appears to take effect at one instant between invocation and response. A. Monitor B. Linearizability C. Barrier D. Memory consistency model 86. A case study refers to the following: the correctness condition that each operation appears to take effect at one instant between invocation and response. Which term is being described? A. Sequential consistency B. Hazard pointer C. False sharing **D. Linearizability

  1. When analysing a problem, the relevant principle is: the correctness condition that each operation appears to take effect at one instant between invocation and response. Which term is being described?** A. Semaphore

B. Aba problem C. Linearizability D. Hazard pointer

88. A course assessment asks about this feature: the correctness condition that each operation appears to take effect at one instant between invocation and response. Which term is being described? A. Blocking lock B. Linearizability C. Condition variable D. Starvation 89. In a classroom discussion, the concept is explained as: the correctness condition that each operation appears to take effect at one instant between invocation and response. Which term is being described? A. Blocking lock B. Concurrency C. Wait-free progress **D. Linearizability

  1. A textbook review highlights this definition: the correctness condition that each operation appears to take effect at one instant between invocation and response. Which term is being described? A. Linearizability** B. Condition variable C. False sharing D. Mutual exclusion 91. Which term best matches the following description? The condition that operations appear in one global order preserving each thread's program order. A. False sharing B. Concurrent queue C. Sequential consistency D. Barrier 92. A student is asked to identify the concept described below. Which answer is correct? The condition that operations appear in one global order preserving each thread's program order. A. Monitor B. Sequential consistency

98. A course assessment asks about this feature: the condition that operations appear in one global order preserving each thread's program order. Which term is being described? A. Aba problem B. Obstruction-free progress C. Concurrent queue **D. Sequential consistency

  1. In a classroom discussion, the concept is explained as: the condition that operations appear in one global order preserving each thread's program order. Which term is being described?** A. Concurrency B. Livelock C. Test-and-set **D. Sequential consistency
  2. A textbook review highlights this definition: the condition that operations appear in one global order preserving each thread's program order. Which term is being described?** A. Work stealing B. Compare-and-swap C. Lock-free progress **D. Sequential consistency
  3. Which term best matches the following description? An operation that appears indivisible to other threads.** A. Spin lock B. Compare-and-swap C. False sharing **D. Atomic operation
  4. A student is asked to identify the concept described below. Which answer is correct? An operation that appears indivisible to other threads.** A. Work stealing B. Concurrency C. False sharing **D. Atomic operation
  5. Which concept is most directly illustrated by this description? An operation that appears indivisible to other threads.** A. Aba problem

B. Deadlock C. Atomic operation D. Memory consistency model

104. In a test of core terminology, which option should be selected for the description below? An operation that appears indivisible to other threads. A. Atomic operation B. Monitor C. Livelock D. Sequential consistency 105. Which of the following names the principle or process described? An operation that appears indivisible to other threads. A. Blocking lock B. Condition variable C. Atomic operation D. Barrier 106. A case study refers to the following: an operation that appears indivisible to other threads. Which term is being described? A. Atomic operation B. Spin lock C. Race condition D. Barrier 107. When analysing a problem, the relevant principle is: an operation that appears indivisible to other threads. Which term is being described? A. Atomic operation B. Wait-free progress C. Critical section D. Memory consistency model 108. A course assessment asks about this feature: an operation that appears indivisible to other threads. Which term is being described? A. Critical section B. Atomic operation C. Concurrent queue D. Barrier