FROM : Chris Hanson
DATE : Thu May 08 07:26:13 2008
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
DATE : Thu May 08 07:26:13 2008
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
| Related mails | Author | Date |
|---|---|---|
| Karl von Moller | May 6, 04:17 | |
| John Calhoun | May 6, 04:35 | |
| Michael Vannorsdel | May 6, 06:28 | |
| Karl von Moller | May 6, 06:46 | |
| Michael Vannorsdel | May 6, 07:12 | |
| Karl von Moller | May 6, 08:07 | |
| Michael Vannorsdel | May 6, 12:19 | |
| Karl von Moller | May 6, 13:04 | |
| Michael Vannorsdel | May 6, 13:10 | |
| Karl von Moller | May 6, 13:19 | |
| Michael Vannorsdel | May 6, 14:00 | |
| Karl von Moller | May 6, 15:25 | |
| Michael Vannorsdel | May 6, 16:52 | |
| Michael Ash | May 6, 18:34 | |
| Chris Hanson | May 8, 07:26 | |
| Michael Vannorsdel | May 8, 08:20 | |
| Chris Hanson | May 8, 08:45 | |
| Michael Vannorsdel | May 8, 09:16 | |
| Scott Ribe | May 8, 17:33 | |
| Michael Vannorsdel | May 9, 04:49 | |
| Timothy Reaves | May 9, 17:49 |






Cocoa mail archive

