Quiz 3 Flashcards
The value of semaphore S is 9.
What is the value of the semaphore after wait(S) is issued?
8
Which synchronization hardware is described by the pseudocode below?
test-and-set()
If there are five philosophers sitting at the table in the classic synchronization problem called the Dining Philosophers Problem, how many chopsticks are there?
5
What is an abstract data type that presents a set of programmer-defined operations that provide mutual exclusion among multiple procedures or methods and uses condition variables called?
monitor
The bounded-buffer problem solution uses the semaphore full, the semaphore empty, and a mutex. In the consumer, what is applied to the semaphore full?
wait()
What requires that the operating system be given additional information in advance concerning which resources a problem will request and use during its lifetime so that deadlock does NOT occur?
deadlock avoidance
What necessary condition for deadlock describes the condition in which at least one resource is being used by Process A, and Process B is using a resource that Process A needs immediately?
hold and wait
What is a group of instructions that need to be execute atomically called?
critical section
What is a flaw in concurrent programming that occurs when the timing or the ordering of events leads to erroneous program behavior?
race condition
What is the term to describe when a lower priority process has indirectly affected how long a higher priority process has to wait?
priority inversion