Lock-free concurrent stack implementation

I've been toying around with a simple implementation of a lock-free Stack in Java.

Do you see any issues with this implementation?

Similar implementations in native languages seem to suffer from the ABA problem, but I'm not sure if this is a problem here; obviously no pointer handling done directly in Java, and given all I care for is the end of the stack both for pop and push, I don't see how "missing" any changes in any non-tail element of the stack would cause issues.

public class LockFreeStack>

{

public abstract static...

Read More »

By: StackOverFlow - 5 days ago

Related Posts