0
Explain the difference between atomic and nonatomic synthesized properties.

Open 1 Answers 90 Views Technology

Explain the difference between atomic and nonatomic synthesized properties.

1 Answer

0

Atomic is the default behavior will ensure the present process is completed by the CPU, before another process accesses the variable is not fast, as it ensures the process is completed entirely

Non-Atomic is NOT the default behavior faster (for synthesized code, that is, for variables created using @property and @synthesize) not thread-safe may result in unexpected behavior, when two different process access the same variable at the same time.

by (280k points)
...