Re: How to make this program more efficient?
On Sep 24, 1:00 am, Jon Harrop <j...@ffconsultancy.com> wrote:
peter koch wrote:
On 23 Sep., 21:27, Jon Harrop <j...@ffconsultancy.com> wrote:
You still make a confusion between locks and memory
Sorry: I read "synchronization" and assumed Peter was
referring to locks.
The two are quite different: although Posix (and doubtlessly
Windows as well) guarantees synchronization accross a lock, lock
free algorithms exist, but they still also require
Well - I can speak for myself and did not mean locks -
Are memory barriers a form of synchronization?
On many machines (e.g. Sparc), they're the only form of memory
synchronization. (I think that Intel refers to them as fences.
I think that Intel also offers some additional guarantees, and
that in particular---if I've understood correctly---it
implicitly generates full memory synchronization around an xchg
instruction. I'm more familiar with Sparc: for Sparc, you
should read section 3.2 of the "Sparc Architecture Manual",
James Kanze (GABI Software) email:firstname.lastname@example.org
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34