Professional Documents
Culture Documents
LockFreeStack VA
LockFreeStack VA
Eliminación fisica
+
Eliminación figlia
Pope)
do
while true
t =
Top . get c )
Lhu
fake
if f. elim = =
true
E. elim =
value
return t .
else I
L t t next
CAS
- .
Top
-
erdif
udwhile
ud Pop
Push Lx )
while true do
t = Top
ehm false then
if t .
= =
t
a next =
) then
if Top .
CASLT ,
✗
returu ok
eudif
else
CAS l t , t next )
Top
.
add
eul while
ad Push