Podcast
Questions and Answers
When using transactional memory in a parallel program, which of the ACID properties (associated with database transactions) must be satisfied? Select all correct answers.
When using transactional memory in a parallel program, which of the ACID properties (associated with database transactions) must be satisfied? Select all correct answers.
In a parallel program using transactional memory, what happens when two transactions attempt to write to the same memory location?
In a parallel program using transactional memory, what happens when two transactions attempt to write to the same memory location?
In a parallel program, a transaction can be used to replace what type(s) of synchronization? Select all correct answers.
In a parallel program, a transaction can be used to replace what type(s) of synchronization? Select all correct answers.
Suppose we are using transactional memory to parallelize accesses to a linked list. We choose a coarse-grained transactional approach, in which we mark all Insert and Delete operations as atomic. The third operation is Search, which returns true/false based on whether a particular value is found in the list. If we do not mark the Search operation as atomic, what could happen?
Select all correct answers.
Suppose we are using transactional memory to parallelize accesses to a linked list. We choose a coarse-grained transactional approach, in which we mark all Insert and Delete operations as atomic. The third operation is Search, which returns true/false based on whether a particular value is found in the list. If we do not mark the Search operation as atomic, what could happen?
Select all correct answers.
Signup and view all the answers
When using hardware transactional memory, which mechanism is used to detect a conflict?
When using hardware transactional memory, which mechanism is used to detect a conflict?
Signup and view all the answers
When using hardware transactional memory, the value written to a memory location by an uncommitted transaction is speculative, and it must be temporarily stored before becoming visible to the rest of the processors.
Where are possible locations in which the speculative state can be stored? Select all correct answers.
When using hardware transactional memory, the value written to a memory location by an uncommitted transaction is speculative, and it must be temporarily stored before becoming visible to the rest of the processors.
Where are possible locations in which the speculative state can be stored? Select all correct answers.
Signup and view all the answers
In transactional memory, which of the following conditions represents a conflict? Select all correct answers.
In transactional memory, which of the following conditions represents a conflict? Select all correct answers.
Signup and view all the answers
Explain Speculative Lock Elision
Explain Speculative Lock Elision
Signup and view all the answers
Explain Transactional Lock Removal
Explain Transactional Lock Removal
Signup and view all the answers