Re: pthreads and standard C library calls and maybe magic Xcode switches
Re: pthreads and standard C library calls and maybe magic Xcode switches
- Subject: Re: pthreads and standard C library calls and maybe magic Xcode switches
- From: Jonas Maebe <email@hidden>
- Date: Wed, 22 Aug 2007 10:24:30 +0200
On 21 Aug 2007, at 23:55, Greg Guerin wrote:
There should be hardware in the cores/processors that keeps CPU caches
coherent. That's why CPU's (or their memory controllers) have
cache-coherency protocols. E.g.:
<http://en.wikipedia.org/wiki/MESI_protocol>
That only happens automatically on some cpus (such as x86). On
others, such as the PowerPC, you have to assist the cpu in taking
care of the cache/memory coherency. See e.g.
http://ridiculousfish.com/blog/archives/2007/02/17/barrier/
That said, all pthread locking functions are guaranteed to act as a
memory barrier, so if you use those you do not have to add any
additional barriers yourself.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden