When dealing with property declarations, what is the difference between atomic and non-atomic?



When dealing with property declarations, what is the difference between atomic and non-atomic?..

Answer / Sourabh Sharma

In iOS, when declaring properties, the atomic keyword ensures thread safety by synthesizing accessor methods using locks, while non-atomic does not. This means that atomic properties can be accessed concurrently without risking data inconsistencies, but with a performance overhead.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Is apple ios based on linux?

1 Answers  


Can a "delegate" retained in ios?

1 Answers  


Which are the ways of achieving concurrency in ios?

1 Answers  


Explain arc?

1 Answers  


Explain your process for tracing and fixing a memory leak

1 Answers  


Difference between cocoa, cocoa touch and objective c?

1 Answers  


Can you explain ios design patterns?

1 Answers  


What is advantage of categories? What is difference between implementing a category and inheritance?

1 Answers  


Explain difference between release and autorelease?

1 Answers  


What is background mode in ios?

1 Answers  


Explain formal protocols?

1 Answers  


What is reference count in ios?

1 Answers  


Categories