What is the use of synchronized() block in objective c?
Answer / Sanjay Kumar Choudhary
The synchronized() block in Objective-C provides a way to enforce mutually exclusive access to shared resources, preventing multiple threads from accessing these resources simultaneously. This helps to maintain data consistency and avoid race conditions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c statically typed?
What is the difference between polymorphism and abstraction?
How to reverse array in objective c?
What is objective c & why it is used for?
Ns object is a parent class or derived class?
What is the difference between weak and unowned?
Can I use objective c in swift?
How do you get closure?
What is a category extension?
When would you use nsarray and nsmutablearray?
What is a delegate? Can you retain delegates?
What is property and its types?