<s>
The	O
Treiber	B-Operating_System
stack	I-Operating_System
algorithm	O
is	O
a	O
scalable	O
lock-free	O
stack	O
utilizing	O
the	O
fine-grained	O
concurrency	O
primitive	O
compare-and-swap	B-Operating_System
.	O
</s>
<s>
This	O
is	O
done	O
by	O
using	O
compare-and-swap	B-Operating_System
.	O
</s>
<s>
In	O
some	O
languages	O
—	O
particularly	O
,	O
those	O
without	O
garbage	O
collection	O
—	O
the	O
Treiber	B-Operating_System
stack	I-Operating_System
can	O
be	O
at	O
risk	O
for	O
the	O
ABA	B-Operating_System
problem	I-Operating_System
.	O
</s>
<s>
The	O
compare	B-Operating_System
and	I-Operating_System
swap	I-Operating_System
will	O
set	O
the	O
head	O
of	O
the	O
stack	O
to	O
the	O
old	O
second	O
element	O
in	O
the	O
stack	O
mixing	O
up	O
the	O
complete	O
data	O
structure	O
.	O
</s>
<s>
Model	B-Application
checking	I-Application
is	O
an	O
excellent	O
way	O
to	O
uncover	O
such	O
problems	O
.	O
</s>
