How to make a code snippet thread safe?
Answer / Ashish Gotra
To make a code snippet thread-safe, use locks such as @synchronized(), NSConditionLock, or NSLock. Another approach is using Grand Central Dispatch (GCD) operations and data structures like dispatch queues and semaphores.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is enum in objective c?
What is the difference between category and extension in objective c?
What is atomic property?
Why is objective c better than swift?
What is the difference between method and type?
What is difference between datasource and delegate?
Why create a custom view?
Who introduced objective-c & when?
Does objective-c contain private strategies?
Is closure a function?
Can I write some c++ function in same .m file? Will it compile? If no, what changes should I do to compile it?
Is objective c type safe language?