Does access/write to Boolean object needs synchronization
This may seem a very silly question.
Consider this:
I have a simple Boolean object with a getter and a setter. Now both of the methods are called from a lot of threads very frequently.
问答
阅读(5)