* Threads in DCE
@ 1993-11-18 17:24 Adrian Wong
1993-11-18 18:42 ` Jon Mauney
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Adrian Wong @ 1993-11-18 17:24 UTC (permalink / raw)
Can someone tell what the overall differences are between the
various thread libraries: DECthreads, pthread, CMA? Are threads
considered an integral part of DCE? To link the RPC stuff requires
some thread library, so if you install DCE for your machine does
it automatically come with the thread package?
Has OSF put out a reference manual for their supported threads?
I've been tinkering around on the DEC AXP evaluation machine, which
is probably why I'm so confused.....
--
--------------------------------------------------------------------------
Adrian Wong | MSIN K1-90, Molecular Science Research Center
| Pacific Northwest Laboratory, PO Box 999
rg240@fermi.pnl.gov | Richland, WA 99352
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-18 17:24 Threads in DCE Adrian Wong
@ 1993-11-18 18:42 ` Jon Mauney
1993-11-30 15:38 ` Michael J. Grier
1993-11-18 19:29 ` Mark Hickey
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Jon Mauney @ 1993-11-18 18:42 UTC (permalink / raw)
Adrian Wong (rg240@fermi.pnl.gov) wrote:
: Can someone tell what the overall differences are between the
: various thread libraries: DECthreads, pthread, CMA? Are threads
: considered an integral part of DCE? To link the RPC stuff requires
: some thread library, so if you install DCE for your machine does
: it automatically come with the thread package?
:
: Has OSF put out a reference manual for their supported threads?
:
: I've been tinkering around on the DEC AXP evaluation machine, which
: is probably why I'm so confused.....
pthreads is a Posix standard-to-be. OSF DCE specifies Posix 1003.4a draft 4
for their threads interface. Posix has progressed beyond draft 4, but DCE
is what it is.
cma is Digital's proprietary threads interface. Digital supplied cma to OSF
as a technology to implement user-space threads on non-threaded kernels,
so you may see it in DCE products, but DCE programs should use the pthread
interface.
DECThreads is Digital's supported product. It provides an implmentation of
pthreads (draft 4), a variant on pthreads, and cma, so you can program
to whichever API you deem most suitable.
OSF DCE requires threads, so any DCE implementation will have threads
one way or another, and if you get the development tools you will
have a pthreads interface. DECthreads, not surprisingly, is the
way that Digital supplies threads for its DCE product on Alpha AXP.
The OSF DCE Application Development Guide and Application Develeopment
reference include threads. They are available in the complete set from
OSF, and individually from Prentice-Hall.
DCE Application Development Guide ISBN 0-13-643826-1
DCE Application Development Reference ISBN 0-13-643834-2
The DECthreads manual should give equivalent information.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-18 17:24 Threads in DCE Adrian Wong
1993-11-18 18:42 ` Jon Mauney
@ 1993-11-18 19:29 ` Mark Hickey
1993-11-18 20:09 ` Brad Daniels
1993-11-21 4:13 ` Rich Salz
3 siblings, 0 replies; 11+ messages in thread
From: Mark Hickey @ 1993-11-18 19:29 UTC (permalink / raw)
In article <2cgb53$efn@bbs.pnl.gov> rg240@fermi.pnl.gov (Adrian Wong) writes:
>Can someone tell what the overall differences are between the
>various thread libraries: DECthreads, pthread, CMA?
At a very high level the difference is this - I think DECthreads is DEC's
threads product, I am not sure. POSIX threads (pthreads) is a draft
specification from POSIX describing a threads model and API. CMA is DCE's
threads (the CMA stands for Concert Multithread Architecture, which was the
name of the threads package DEC contributed to DCE). DCE threads is an
implementation of a version of the pthreads spec (draft 4 - they are up to 8)
with some minor API extensions, and an exception handling package. OSF
will migrate to the POSIX standard behavior when the pthreads draft becomes
a final spec.
> Are threads
>considered an integral part of DCE?
Are you're fingers an integral part of your hands?? :-) :-) Yes, they are.
> To link the RPC stuff requires
>some thread library, so if you install DCE for your machine does
>it automatically come with the thread package?
As implied by the answer to the first part of your message, the answer is
yes. You get the source for the DCE threads package with the DCE release.
Alternatively, you can use a native pthreads implementation.
>
>Has OSF put out a reference manual for their supported threads?
>
The pthreads reference manual is part of the DCE Application Development
Reference Guide, which is published by (I think) Prentice-Hall, and which is
also provide in source, ASCII and Postcript format on the DCE Release tapes.
Mark Hickey
mhickey@osf.org
DCE System Testing
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-18 17:24 Threads in DCE Adrian Wong
1993-11-18 18:42 ` Jon Mauney
1993-11-18 19:29 ` Mark Hickey
@ 1993-11-18 20:09 ` Brad Daniels
1993-11-21 4:13 ` Rich Salz
3 siblings, 0 replies; 11+ messages in thread
From: Brad Daniels @ 1993-11-18 20:09 UTC (permalink / raw)
In article <2cgb53$efn@bbs.pnl.gov>, Adrian Wong <rg240@fermi.pnl.gov> wrote:
>Can someone tell what the overall differences are between the
>various thread libraries: DECthreads, pthread, CMA? Are threads
>considered an integral part of DCE? To link the RPC stuff requires
>some thread library, so if you install DCE for your machine does
>it automatically come with the thread package?
CMA (originally "Common Multithread Architecure", later called "Concert
Multithread Architecure") was DEC's first publicly available thread API
and sample thread implementation. DECthreads is DEC's commercial implemen-
tation of threads, which evolved from the CMA effort as CMA evolved into
pthreads. Pthreads refers to the POSIX realtime extensions which used a
base document generated by the CMA folks. At one time, the only difference
between CMA threads and pthreads was that CMA had a cma_ in front of every
symbol name, while pthreads had a pthread_ in front of everything.
Some implementations of pthreads are really just the DEC sample
implementation of CMA with a few tweaks.
Anyway, the pthreads API is the standard, and should be used in preference
to the CMA interface. Since they are nearly (completely?) identical, that
should be no problem. The use of pthreads is described in the OSF DCE
Application Development Guide and in one of the POSIX 1003 documents (I
think it's 1003.4a, "Real Time Extensions to POSIX"). I'm not positive
what the approval status is on the real-time extensions.
- Brad
--------------------------------------------------------------------------
+ Brad Daniels | Until you can prove unequivocally that +
+ Biles and Associates | you're arguing epistemology with me, +
+ These are my views, not B&A's | I won't argue epistemology with you. +
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-18 17:24 Threads in DCE Adrian Wong
` (2 preceding siblings ...)
1993-11-18 20:09 ` Brad Daniels
@ 1993-11-21 4:13 ` Rich Salz
1993-11-23 12:09 ` Casper H.S. Dik
1993-11-25 17:38 ` Nullmeier, Markus
3 siblings, 2 replies; 11+ messages in thread
From: Rich Salz @ 1993-11-21 4:13 UTC (permalink / raw)
In <2cgb53$efn@bbs.pnl.gov> rg240@fermi.pnl.gov (Adrian Wong) writes:
>Can someone tell what the overall differences are between the
>various thread libraries: DECthreads, pthread, CMA? Are threads
>considered an integral part of DCE? To link the RPC stuff requires
>some thread library, so if you install DCE for your machine does
>it automatically come with the thread package?
DCE both provides and requires a thread package. CMA (concert multiprocess
architecture) was the core technology of the original library provided by
Digital. OSF considers it a bug if any DCE code calls any of the cma_xxx
routines. We use and document the pthread interface, including some
"pthread_xxx_np" functions where the "_np" suffix indicates that it is
not guaranteed to be portable. The term CMA is discouraged; use
DCE threads or, perhaps DEC threads.
Philosophically, the DCE evaluation team here took threads for granted
and assumed that it would very soon be part of the standard programming
facilities. DCE includes a threads package (done in user space, making
heavy use of #define wrappers) primarily to show what's needed. I know
several people here are disappointed that more people aren't providing
their own integral threads support and are instead just porting DCE threads.
>Has OSF put out a reference manual for their supported threads?
DCE documentation includes introductory material on threads and the
reference manual includes manpages for the pthreads routines.
The AES Threads Volume, which is on the X/Open fast track for
standardization (all of DCE is), is about to be released for X/Open
review. I expect that X/Open will approve the AES way before
Posix finishes its thread specification; it will be interesting to
see what happens then.
/r$
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-21 4:13 ` Rich Salz
@ 1993-11-23 12:09 ` Casper H.S. Dik
1993-11-23 17:00 ` Rich Salz
1993-11-25 17:38 ` Nullmeier, Markus
1 sibling, 1 reply; 11+ messages in thread
From: Casper H.S. Dik @ 1993-11-23 12:09 UTC (permalink / raw)
rsalz@osf.org (Rich Salz) writes:
>DCE documentation includes introductory material on threads and the
>reference manual includes manpages for the pthreads routines.
>The AES Threads Volume, which is on the X/Open fast track for
>standardization (all of DCE is), is about to be released for X/Open
>review. I expect that X/Open will approve the AES way before
>Posix finishes its thread specification; it will be interesting to
>see what happens then.
It is nice to see that the people of OSF are as concerned as we
all are when it comes to getting one standard Unix. Are you guys
proud of trying to standardize a deficient threads package via
this backdoor? It sure looks like it.
Casper
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-23 12:09 ` Casper H.S. Dik
@ 1993-11-23 17:00 ` Rich Salz
0 siblings, 0 replies; 11+ messages in thread
From: Rich Salz @ 1993-11-23 17:00 UTC (permalink / raw)
In <2cmptu$j7k@paperboy.osf.org> I wrote:
>The AES Threads Volume, which is on the X/Open fast track for
>standardization
I was wrong. The Threads AES is not part of the X/Open package. OSF is
not attempting to trying to standardize anything behind any back doors.
We are documenting the threads interface that is used and provided by
DCE, and we are not claiming it as anything other then that.
/r$
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-21 4:13 ` Rich Salz
1993-11-23 12:09 ` Casper H.S. Dik
@ 1993-11-25 17:38 ` Nullmeier, Markus
1993-11-30 14:08 ` Rich Salz
1 sibling, 1 reply; 11+ messages in thread
From: Nullmeier, Markus @ 1993-11-25 17:38 UTC (permalink / raw)
In article <2cmptu$j7k@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>[...] on the X/Open fast track for
>standardization (all of DCE is), is about to be released for X/Open
>review.
Does that mean there will be full (suitable to an OSF-independent
reimplementation) DCE specifications someday? Rumor has it that
until today such papers just don't exist.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-25 17:38 ` Nullmeier, Markus
@ 1993-11-30 14:08 ` Rich Salz
0 siblings, 0 replies; 11+ messages in thread
From: Rich Salz @ 1993-11-30 14:08 UTC (permalink / raw)
In <m147150.184.2CF4ED91@urz-mail.urz.uni-heidelberg.de> m147150@urz-mail.urz.uni-heidelberg.de (Nullmeier, Markus) writes:
>Does that mean there will be full (suitable to an OSF-independent
>reimplementation) DCE specifications someday? Rumor has it that
>until today such papers just don't exist.
OSF wants to produce specifications that contain enough detail. It is
almost impossible to write such a document, however. For example, NFS is
a very simple protocol, but nobody can properly implement it just from
the spec -- you always have to test against the official source and you
always find bugs or glitches that are not documented.
OSF's resources are not infinite (otherwise I'd ask for a big raise :-).
Our priority is on delivering the best possible source code that we can.
/r$
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-18 18:42 ` Jon Mauney
@ 1993-11-30 15:38 ` Michael J. Grier
1993-11-30 19:47 ` David Wright
0 siblings, 1 reply; 11+ messages in thread
From: Michael J. Grier @ 1993-11-30 15:38 UTC (permalink / raw)
In article <1993Nov18.184228.2603@ncsu.edu>, mauney@adm.csc.ncsu.edu (Jon Mauney) writes:
|>pthreads is a Posix standard-to-be. OSF DCE specifies Posix 1003.4a draft 4
|> for their threads interface. Posix has progressed beyond draft 4, but DCE
|> is what it is.
From what I understand, the DCE pthreads interface will synchronize with
the POSIX specification when it is complete. Be ready to change your
source code!
|>cma is Digital's proprietary threads interface. Digital supplied cma to OSF
|> as a technology to implement user-space threads on non-threaded kernels,
|> so you may see it in DCE products, but DCE programs should use the pthread
|> interface.
As has been mentioned in other postings, CMA and Pthreads D4 are pretty
much alike.
The difference is that the CMA interface is stable and will not change
in the future. If you want your sources to continue to compile and build
without changes into the future, on Digital platforms at least, CMA is your
tool.
From discussions with the DECthreads developers (I'm not one, just a client
for a number of years now) binaries built with the pthreads interface will
continue to work with sharable libraries in the future (i.e. the old interfaces
will be preserved) but source compatibilty will not be maintained.
Basically from where I sit, the decision of which to make depends on your
market and where you want to spend your time in the future. If you need
multiplatform support today, pthreads is really your only choice. CMA is
available on a number of Digital platforms, but not every one that's
interesting. Pthread is available pretty much across the board, but as I
mentioned, you're buying into requiring source changes in the future. (I've
been assured that the source changes will be minimal/minor, but as any
maintainer knows, even "minimal" changes tend to introduce bugs...)
------------------------------------------------------------------------
I'm saying this, not Digital. Don't hold them responsibile for it!
Michael J. Grier Digital Equipment Corporation
(508) 496-8417 mjg@ktbush.ogo.dec.com
Stow, Mass, USA Mailstop OGO1-1/E16
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Threads in DCE
1993-11-30 15:38 ` Michael J. Grier
@ 1993-11-30 19:47 ` David Wright
0 siblings, 0 replies; 11+ messages in thread
From: David Wright @ 1993-11-30 19:47 UTC (permalink / raw)
In article <2dfpe8$h0h@nntpd.lkg.dec.com> mjg@ktbush.ogo.dec.com (Michael J. Grier) writes:
>
>In article <1993Nov18.184228.2603@ncsu.edu>, mauney@adm.csc.ncsu.edu (Jon Mauney) writes:
>|>pthreads is a Posix standard-to-be. OSF DCE specifies Posix 1003.4a draft 4
>|> for their threads interface. Posix has progressed beyond draft 4, but DCE
>|> is what it is.
> From what I understand, the DCE pthreads interface will synchronize with
>the POSIX specification when it is complete. Be ready to change your
>source code!
But the 1003.4a standard is not yet settled, and OSF has no current
plans to change their threads. Nor do I expect to even see any plans
until the standard is approved.
>|>cma is Digital's proprietary threads interface. Digital supplied cma to OSF
>|> as a technology to implement user-space threads on non-threaded kernels,
>|> so you may see it in DCE products, but DCE programs should use the pthread
>|> interface.
> As has been mentioned in other postings, CMA and Pthreads D4 are pretty
>much alike.
> The difference is that the CMA interface is stable and will not change
>in the future. If you want your sources to continue to compile and build
>without changes into the future, on Digital platforms at least, CMA is your
>tool.
However, none of the OSF-supplied DCE components use the CMA calls
directly, or at least they are not supposed to and any such code is
considered a bug. No telling what might come along later, so "be
prepared to change your source" is even more appropriate than for
pthreads users.
Maybe on Digital platforms it's considered safe to use CMA interfaces,
but I wouldn't do it on any other vendor platforms. I'd have junked
CMA on the port I'm doing except that I didn't have time to locate
bugs in our OSF/1 pthreads library.
-- David Wright, Hitachi Computer Products (America), Inc. Waltham, MA
wright@hi.com :: These are my opinions, not necessarily Hitachi's,
but you're free to disagree, you poor deluded creature
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1993-11-30 19:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-18 17:24 Threads in DCE Adrian Wong
1993-11-18 18:42 ` Jon Mauney
1993-11-30 15:38 ` Michael J. Grier
1993-11-30 19:47 ` David Wright
1993-11-18 19:29 ` Mark Hickey
1993-11-18 20:09 ` Brad Daniels
1993-11-21 4:13 ` Rich Salz
1993-11-23 12:09 ` Casper H.S. Dik
1993-11-23 17:00 ` Rich Salz
1993-11-25 17:38 ` Nullmeier, Markus
1993-11-30 14:08 ` Rich Salz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox