4 ms·
An increment like s.current++ isn't atomic either. If two threads increment simultaneously the value may only increase by 1.
by biggestdecision 7y ago
An increment like s.current++ isn't atomic either. If two threads increment simultaneously the value may only increase by 1.