From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,92f31bafc1256763 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,fb7d30cdbe7debec X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-07-16 19:39:51 PST Xref: gmd.de comp.unix.osf.osf1:637 comp.unix.osf.misc:341 Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc Path: gmd.de!xlink.net!howland.reston.ans.net!agate!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!psinntp!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Subject: Re: DCE/Posix threads Message-ID: Sender: news@fig.citib.com Organization: Citibank IBISM References: Distribution: na Date: Fri, 16 Jul 1993 22:58:16 GMT In article grunwald@foobar.cs.colorado.edu writes: > >I need to know how DCE/Posix threads access per-pthread information. >On our KSR-1, there is a compiler directive '__private' that lets me >indicate a copy of that variable should be allocated for each pthread >that is created. There is no such directive on our DEC AXP 3000/400. Of course, every thread has its own stack, although I don't think that's what you mean. There's also the pthread_setspecific function, which associates some arbitrary data (i.e. a pointer) with a key on a thread-specific basis. This, eash thread can access some private data via that key. So if I define a "private" global variable on the KSR-1, will the system automatically give each thread a private copy of that variable? Pretty cool. greg -- Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com