iOS Developer Question:

Download Job Interview Questions and Answers PDF

What is synchronized() block in objective c? what is the use of that?

iOS Developer Interview Question
iOS Developer Interview Question

Answer:

The @synchronized()directive locks a section of code for use by a single thread. Other threads are blocked until the thread exits the protected code.

Download iOS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is the meaning of "weak" keyword?What are the Application lifecycle in iOS?