2.29.6 [10] <2.11> If we want to atomically perform the same operation on two
shared variables (e.g., shvar1 and shvar2) in the same critical section, we can do
this easily using the approach from 2.29.1 (simply put both updates between the
lock operation and the corresponding unlock operation). Explain why we cannot
do this using the approach from 2.29.2. i.e., why we cannot use ll/sc to access
both shared variables in a way that guarantees that both updates are executed
together as a single atomic operation.
 
 
View Solution
 
 
 
<< Back Next >>