COP 4600 Exam 2 Questions and Answers With All Complete Solutions
The term ____________ refers to a technique in which a process can do nothing until it
... [Show More] 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. – ANSWER: spin (busy) waiting
It is possible in a single-processor system to not only interleave the execution of multiple processes but also to overlap them. - ANSWER: False
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. - ANSWER: False
A process that is waiting for access to a critical section does not consume processor time when mutual exclusion is implemented with TestAndSet-based locks. - ANSWER: False
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 ___________. - ANSWER: race condition
_____________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. - ANSWER: Critical section
_____________is when the sequence of instruction is guaranteed to execute as a group, or not execute at all. - ANSWER: Atomic operation/ Atomicity
Threads of the same process that share some memory need to be synchronized to enforce mutual exclusion. - ANSWER: True
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. - ANSWER: busy waiting
A process that is waiting for access to a critical section does not consume processor time when mutual exclusion is implemented with CompareAndSwap-based locks. - ANSWER: False
It is possible for one process to lock the mutex and for another process to unlock it. - ANSWER: True [Show Less]