Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: koehler@eisner.decus.org (Bob Koehler)
Subject: Re: memory barrier help
Date: 5 Jan 2001 08:45:17 -0500	[thread overview]
Message-ID: <nklUa77ULdBw@eisner.decus.org> (raw)
In-Reply-To: 3A548425.2E4007A3@minbar.zko.dec.com

In article <3A548425.2E4007A3@minbar.zko.dec.com>, Daniel Christians <danielc@minbar.zko.dec.com> writes:
> 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
> instruction? (or alternatively the wmb instruction).
> the application happens to be the java vm.
> 

IIRC DECthreads can run threads simultaneously on different CPUs in an
SMP machine.  The only way one thread can know that another thread sees
a consistent set of data is via a memory barrier.

On a single CPU system the memory barrier is only really needed when
passing data off to an external device (all Alphas always need to work
like multi-processor machines due to this).  The code in DECthreads is
probably generic and does the MB's any time data could be passed from
thread to thread.

----------------------------------------------------------------------
Bob Koehler                     | Computer Sciences Corporation
NASA GSFC Flight Software       | Federal Sector, Civil Group
                                | please remove ".aspm" when replying


      parent reply	other threads:[~2001-01-05 13:45 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
2001-01-05 13:45 ` Bob Koehler [this message]
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