Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

davbeck

macrumors regular
Original poster
May 16, 2008
104
0
Reno, NV
I am a little curious about @synchronized. If I understand it correctly, @synchronized(object) will block the statement for that object only. So if another thread comes along and tries to execute that section of code with a different object, it will go right ahead and do it, but if another thread comes along and tries to execute the code with the same object, it will be blocked.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.