Re: Threading - How its done?
Re: Threading - How its done?
- Subject: Re: Threading - How its done?
- From: Chris Hanson <email@hidden>
- Date: Wed, 07 May 2008 22:26:13 -0700
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 (email@hidden)
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:
This email sent to email@hidden