The CLR guarantees atomic readout of values ββup to the width of the processor. Therefore, if you work on 32 bits, reading intwill be atomic. If you are working on a 64-bit machine, reading longwill be atomic. Ergo, if there Countis Int32, no need to block.
This post relates to your question.
source
share