On May 5, 2008, at 10:12 PM, Michael Vannorsdel wrote:
Now if two threads are just reading the same piece of data it's ok for them to do so at the same time,
I don't know what gave you this idea, but it's simply not correct in the general case.
Whether you're accessing or changing shared data, you need to be using proper synchronization primitives. In special circumstances you can use things like atomic operations or barrier primitives, but in general if you're going to share data you must synchronize access to it.
-- Chris _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]