What is the difference between atomic and nonatomic properties?



What is the difference between atomic and nonatomic properties?..

Answer / Nisha Rani

In Objective-C and Swift, properties can be declared as either "atomic" or "nonatomic". Atomic properties are thread-safe and ensure that setting and getting a property value is done in an atomic operation. Nonatomic properties are not thread-safe and allow for faster performance by avoiding the use of locks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What is push notification?

1 Answers  


What is the maximum byte-size for a push notification to apple server?

1 Answers  


How many bytes we can send to apple push notification server?

1 Answers  


what are all instruments available in Xcode?

1 Answers  


What is oops in ios?

1 Answers  


Explain application states

1 Answers  


How to change the content of your app in order to change the views displayed in the corresponding window?

1 Answers  


How to debug a crash in the auto-release pool?

1 Answers  


What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.

0 Answers  


Is core data is thread safe?

1 Answers  


What are the steps you must follow to configure your computer and development device for iphone development?

1 Answers  


What is the difference between android and ios?

1 Answers  


Categories