What does “spurious failure” on AtomicInteger weakCompareAndSet mean?

后端 未结 4 1922
不思量自难忘°
不思量自难忘° 2021-02-05 08:43

The Java AtomicInteger class has a method -

boolean weakCompareAndSet(int expect,int update)

Its documnentation says:

Ma

4条回答
  •  失恋的感觉
    2021-02-05 09:09

    But why are such allowed to occur at all? Is this because the hardware/OS underneath is buggy? Or is there some good technical reason behind this?

提交回复
热议问题