From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1e011d032fd56ab1 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-04 21:26:17 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!cyclone.bc.net!newsfeed.direct.ca!look.ca!sjc1.nntp.concentric.net!newsfeed.concentric.net!newsfeed.ozemail.com.au!ozemail.com.au!not-for-mail From: "Rajanish Calisa" Newsgroups: comp.unix.tru64 References: <3A548425.2E4007A3@minbar.zko.dec.com> Subject: Re: memory barrier help X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Message-ID: NNTP-Posting-Host: 1cust234.tnt1.syd2.da.uu.net X-Trace: ozemail.com.au 978672333 63.12.0.234 (Fri, 05 Jan 2001 16:25:33 EST) NNTP-Posting-Date: Fri, 05 Jan 2001 16:25:33 EST Organization: OzEmail Ltd, Australia Distribution: world Date: Fri, 5 Jan 2001 16:32:03 +1100 Xref: supernews.google.com comp.unix.tru64:1344 Daniel Christians 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