这里真正的价值在于,getWhatImReading方法未经任何形式的同步便被执行,而setWhatImReading是作为一个原子操作执行的。
The real value here is that the getWhatImReading method is executed without synchronization of any kind, whereas the setWhatImReading is executed as an atomic operation.
这里真正的价值在于,getWhatImReading方法未经任何形式的同步便被执行,而setWhatImReading是作为一个原子操作执行的。
The real value here is that the getWhatImReading method is executed without synchronization of any kind, whereas the setWhatImReading is executed as an atomic operation.
应用推荐