Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to make a code snippet thread safe?



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

Post New Answer

More Objective-C Interview Questions

What is difference between method and constructor?

1 Answers  


Is there function overloading in objective-c?

1 Answers  


How to print string in objective c?

1 Answers  


What is lazy var?

1 Answers  


How do you write an objective?

1 Answers  


How to implement in app purchase in ios objective c?

1 Answers  


What is protocol with example?

1 Answers  


Does objective c have function overloading?

1 Answers  


What is nonatomic in objective c?

1 Answers  


Explain what are the attributes of category?

1 Answers  


How to convert string to nsnumber in objective c?

1 Answers  


What does mean in objective c?

1 Answers  


Categories