The difference between atomic and nonatomic is that the Getter/setter method generated automatically by the system is different. If you write Getter/setter yourself, that atomic/nonatomic/retain/assign/copy these keywords only prompts, write not to write all the same.
For atomic properties, the system-generated getter/setter guarantees the integrity of the get, set operation, and is unaffected by other threads. For example, thread A's getter method runs to half and thread B invokes the setter: then the getter of thread A can still get an object that is intact.
And nonatomic has no such guarantee. Therefore, the speed of nonatomic is faster than atomic.
However, atomic can not guarantee thread safety. If thread A has tuned the getter, meanwhile thread B and thread C have setter--the value of the last thread a get to, 3 kinds are possible: the original value before B, C set, or the value of B set or the value of C set. At the same time, the final value of this property may be the value of B set or the value of C set.