No student devices needed. Know more
9 questions
Mark one ADVANTAGE and one DISADVANTAGE of STM (Software Transactional Memory, as opposed to Hardware Transactional Memory)
worse performance
better performance
can be used flexibly, without support from the hardware
more work for the programmer
What does the programmer have to pay attention to when using shared mutable state with reference-based STMs (e.g. scala-stm)?
variables must be volatile
special reference variables/objects must be used for the shared state
the program should not directly modify the shared state by itself
the programmer must remember to add accesses to the read/write set
when using `retry`, one must specify all variables for which updates should be detected
Atomic registers can be used to implement CAS
True
False
The following code is a correct consensus protocol for 2 threads
True
False
True
False
True
False
True
False
True
False
Match the entries on the left with the MPI operations on the right. (Top to bottom, NO SPACES)
Explore all questions with a free account