From: gjb@fig.citib.com (Greg Brail)
Subject: Re: DCE/Posix threads
Date: Fri, 16 Jul 1993 22:58:16 GMT [thread overview]
Message-ID: <CAA554.1pA@fig.citib.com> (raw)
In-Reply-To: GRUNWALD.93Jul15185451@frob.cs.colorado.edu
In article <GRUNWALD.93Jul15185451@frob.cs.colorado.edu> 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
next prev parent reply other threads:[~1993-07-16 22:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-07-16 0:54 DCE/Posix threads Dirk Grunwald
1993-07-16 8:45 ` Simon Patience
1993-07-16 12:17 ` Neil Winton
1993-07-16 22:58 ` Greg Brail [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-07-16 0:59 Dirk Grunwald
[not found] <1993Jul16.010227.13204@colorado.edu>
1993-07-16 1:11 ` Dirk Grunwald
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