Is an atomic property thread safe? [duplicate]
问题 This question already has answers here : What's the difference between the atomic and nonatomic attributes? (26 answers) Atomic properties vs thread-safe in Objective-C (5 answers) Closed 4 years ago . I have gone through many answers about atomic and non-atomic properties. But I'm not able to understand whether atomic properties are thread safe? Please explain it with an example. 回答1: Yes an / one atomic property is thread-safe. That is what atomicity stands for. CAUTION But neither are two