What is synchronized() block in objective c?
Answer / Pavitra Pratap Singh Deora
A synchronized() block in Objective-C is used for thread synchronization. It ensures that only one thread can access a method or a code block at any given time, preventing race conditions and ensuring thread safety.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is m file?
Tell me about important protocol being used in objective c?
What is data encapsulation in objective-c?
Can I write some c++ function in same .m file? Will it compile? If no, what changes should I do to compile it?
Distinguish between @synthesize and @dynamic in objective –c?
What is polymorphism in objective-c?
What is super in objective c?
How to declare global variable in objective c?
What is delegation protocol?
Is it possible to implement dealloc in arc?
What is nsarray objective c?
Who invented objective c?