In the lock-free algorithm, we attempt to logically remove then o de currby calling curr. next. compare And Set (succ, succ, false, true)(line 55 of Fig. 9.25). For each of the following implementations in which this call is replaced with a different method call, either explain why it is correct or describe an execution in which it fails.
a. We instead call curr. next. compare And Set Mark (false,true), where compare And Set Mark () is a fictional method that atomically performs a normal compare-and-swap operation on just the mark bit.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here