From: "Rajanish Calisa" <rcalisa@ozemail.com.au>
Subject: Re: memory barrier help
Date: Fri, 5 Jan 2001 16:32:03 +1100 [thread overview]
Message-ID: <hVc56.395$XU2.12409@ozemail.com.au> (raw)
In-Reply-To: 3A548425.2E4007A3@minbar.zko.dec.com
Daniel Christians <danielc@minbar.zko.dec.com> wrote in message
news:3A548425.2E4007A3@minbar.zko.dec.com...
> hi,
>
> is there a doc, or can someone explain why a
> a user application program which uses pthreads
> (DECthreads) would need to use the memory barrier
>
For a treatment of memory barriers etc, read Unix for multiprocessors
by Curt Schimmel. Any decent pthread programming book should
talk about it: E.g. Programming Posix threads by D Butenhof.
The books explain why they are required. Also check out
Sun Multi-threaded programming guide on Sun web site. You
can do a search for it.
pthread calls like mutex_lock(), mutex_unlock(), pthread_create()
etc., introduce memory barriers, and normally an application
programmers do not need to worry about it, since the
mechanisms differ from platform to platform.
> instruction? (or alternatively the wmb instruction).
> the application happens to be the java vm.
>
> thanks much,
>
> dan christians
next prev parent reply other threads:[~2001-01-05 5:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-04 14:09 memory barrier help Daniel Christians
2001-01-05 5:32 ` Rajanish Calisa [this message]
2001-01-05 13:45 ` Bob Koehler
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox