Explain @synchronized ,@dynamic



Explain @synchronized ,@dynamic..

Answer / Faheem Husain

@synchronized is a directive used in Objective-C to ensure that methods are thread-safe. It uses Apple's built-in synchronization primitives (like locks) to prevent multiple threads from accessing the same method concurrently.nn@dynamic is a directive used to declare that a method will be implemented later, typically when the class is loaded or at runtime. This is useful for overriding methods in subclasses.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Who calls the dealloc strategy?

1 Answers  


Explain how to hide images in ios?

1 Answers  


Explain the correct way to manage Outlets memory in iOS.

1 Answers   UGC Corporation,


Enlist the methods to achieve concurrency in ios?

1 Answers  


What is the protocol in ios?

1 Answers  


What are the different delete rules that a relationship can have? Which one takes ownership?

1 Answers  


Who calls the dealloc strategy? Would we be able to implement dealloc in arc? In the event that indeed, what is the need to do that?

1 Answers  


How to handle concurrency problems in core data?

0 Answers  


What is ios architecture?

1 Answers  


What is nspersistentstore?

1 Answers  


What are the memory management rules?

1 Answers  


What is clean architecture ios?

1 Answers  


Categories