Using AtomicStampedReference, if the expectedRef is larger than 100, the compareAndSet return false, which should have returned true accutrally

后端 未结 0 535
傲寒
傲寒 2021-01-24 15:20

import java.util.concurrent.atomic.AtomicStampedReference;

public class ABADemo2 { static AtomicStampedReference atomicStampedReference = new AtomicStampedReference<&g

相关标签:
回答
  • 消灭零回复
提交回复
热议问题