Question from the Objective-C test

How to make a method thread safe in Objective-C