* Is DCEthreads based on Posix thread under Digital Unix 4.0f?
@ 2003-06-06 9:05 Loic Domaigne
2003-06-06 10:27 ` nospam
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Loic Domaigne @ 2003-06-06 9:05 UTC (permalink / raw)
Hello Folks,
One question regarding the DCEthreads (also Posix 1003.4a Draft 4)
under Digital UNIX V4.0F: is this library an emulation layer ontop of
Posix threads?
It looks so. I have written a small program that uses DCEthreads,
compiled with cc -threads. One particularity is that it uses
pthread_sigmask, a function that only appaered in Posix 1003.1c.
The program gets compiled (it theoritically shouldn't: I would have
expected an undefined reference from ld). An odump -Dl on the binary
gives me:
***LIBRARY LIST SECTION***
Name Time-Stamp CheckSum Flags Version
sig:
libpthreads.so Apr 12 18:21:10 1999 0x4cc7972c 0 osf.1
libpthread.so Apr 12 19:22:57 1999 0x75dd89c8 0 osf.1
libexc.so Apr 12 18:14:20 1999 0xbf6e7df3 0 osf.1
libc.so Apr 12 18:14:03 1999 0x59eef91c 0 osf.1
Thus, the Posix.1c threads library get also linked... I had a look at
/usr/include/dce/pthread.h, the definition of the API's seems to
confirm that point.
I'm almost 6 nines sure (99.9999%) that the DCEthreads library is in
reality based on the Posix.1c threads, but I'd like to get a
confirmation from an expert :-)
Thanks!
Loic.
P.S: For those who are wondering why I might actually be still
programming DCEthreads on those days, the reason is that the program
that I'm targeting is a DCE application.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Is DCEthreads based on Posix thread under Digital Unix 4.0f?
2003-06-06 9:05 Is DCEthreads based on Posix thread under Digital Unix 4.0f? Loic Domaigne
@ 2003-06-06 10:27 ` nospam
2003-06-06 16:46 ` L D Jones
2003-06-06 10:44 ` Alexander Terekhov
2003-06-06 11:29 ` David Butenhof
2 siblings, 1 reply; 6+ messages in thread
From: nospam @ 2003-06-06 10:27 UTC (permalink / raw)
in article 3e0374e6.0306060105.7b18a479@posting.google.com, Loic Domaigne at
loic-dev@gmx.net wrote on 06/06/2003 19:05:
> Hello Folks,
>
> One question regarding the DCEthreads (also Posix 1003.4a Draft 4)
DCE what? Are you sure you don't mean DECthreads ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is DCEthreads based on Posix thread under Digital Unix 4.0f?
2003-06-06 10:27 ` nospam
@ 2003-06-06 16:46 ` L D Jones
0 siblings, 0 replies; 6+ messages in thread
From: L D Jones @ 2003-06-06 16:46 UTC (permalink / raw)
nospam wrote:
>
> in article 3e0374e6.0306060105.7b18a479@posting.google.com, Loic Domaigne at
> loic-dev@gmx.net wrote on 06/06/2003 19:05:
>
> > Hello Folks,
> >
> > One question regarding the DCEthreads (also Posix 1003.4a Draft 4)
>
> DCE what? Are you sure you don't mean DECthreads ?
I think he really means DCE (_The_ Distributed Computing Environment)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is DCEthreads based on Posix thread under Digital Unix 4.0f?
2003-06-06 9:05 Is DCEthreads based on Posix thread under Digital Unix 4.0f? Loic Domaigne
2003-06-06 10:27 ` nospam
@ 2003-06-06 10:44 ` Alexander Terekhov
2003-06-06 11:29 ` David Butenhof
2 siblings, 0 replies; 6+ messages in thread
From: Alexander Terekhov @ 2003-06-06 10:44 UTC (permalink / raw)
Loic Domaigne wrote:
[...]
> I'm almost 6 nines sure (99.9999%) that the DCEthreads library is in
> reality based on the Posix.1c threads, but I'd like to get a
> confirmation from an expert :-)
Seems that an expert is currently on vacation. ;-)
But google might help...
http://groups.google.com/groups?selm=3AA6287B.CEAA32D8%40compaq.com
regards,
alexander.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is DCEthreads based on Posix thread under Digital Unix 4.0f?
2003-06-06 9:05 Is DCEthreads based on Posix thread under Digital Unix 4.0f? Loic Domaigne
2003-06-06 10:27 ` nospam
2003-06-06 10:44 ` Alexander Terekhov
@ 2003-06-06 11:29 ` David Butenhof
2003-06-07 13:26 ` Loic Domaigne
2 siblings, 1 reply; 6+ messages in thread
From: David Butenhof @ 2003-06-06 11:29 UTC (permalink / raw)
Loic Domaigne wrote:
> One question regarding the DCEthreads (also Posix 1003.4a Draft 4)
> under Digital UNIX V4.0F: is this library an emulation layer ontop of
> Posix threads?
Absolutely!
> It looks so. I have written a small program that uses DCEthreads,
> compiled with cc -threads. One particularity is that it uses
> pthread_sigmask, a function that only appaered in Posix 1003.1c.
>
> The program gets compiled (it theoritically shouldn't: I would have
> expected an undefined reference from ld). An odump -Dl on the binary
> gives me:
Actually, it would have been nice had the CC compiler diagnosed the use of
an undefined symbol, because there is no definition in scope for
pthread_sigmask() in this case. However, having managed to get it to
COMPILE, it SHOULD link just fine because, as you've deduced, libpthreads
(the "legacy" library defining CMA and DCE thread functions) depends on
libpthread (the POSIX thread functions).
> ***LIBRARY LIST SECTION***
> Name Time-Stamp CheckSum Flags Version
> sig:
> libpthreads.so Apr 12 18:21:10 1999 0x4cc7972c 0 osf.1
> libpthread.so Apr 12 19:22:57 1999 0x75dd89c8 0 osf.1
> libexc.so Apr 12 18:14:20 1999 0xbf6e7df3 0 osf.1
> libc.so Apr 12 18:14:03 1999 0x59eef91c 0 osf.1
>
> Thus, the Posix.1c threads library get also linked... I had a look at
> /usr/include/dce/pthread.h, the definition of the API's seems to
> confirm that point.
>
> I'm almost 6 nines sure (99.9999%) that the DCEthreads library is in
> reality based on the Posix.1c threads, but I'd like to get a
> confirmation from an expert :-)
Expert? Well, OK; you got it. As the person who architected and designed,
and largely wrote, both DCE threads and the implementation of POSIX threads
on "DEC OSF/1"/"Digital UNIX"/"Tru64 UNIX", I suppose I might just qualify.
> P.S: For those who are wondering why I might actually be still
> programming DCEthreads on those days, the reason is that the program
> that I'm targeting is a DCE application.
It's a tragedy that the DCE AES still calls out nonstandard and archaic "DCE
threads". Unfortunately, OSF lost funding to maintain the AES before POSIX
threads existed, so it's languished for 8 years in the dark ages.
--
/--------------------[ David.Butenhof@hp.com ]--------------------\
| Hewlett-Packard Company Tru64 UNIX & VMS Thread Architect |
| My book: http://www.awl.com/cseng/titles/0-201-63392-2/ |
\----[ http://homepage.mac.com/dbutenhof/Threads/Threads.html ]---/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Is DCEthreads based on Posix thread under Digital Unix 4.0f?
2003-06-06 11:29 ` David Butenhof
@ 2003-06-07 13:26 ` Loic Domaigne
0 siblings, 0 replies; 6+ messages in thread
From: Loic Domaigne @ 2003-06-07 13:26 UTC (permalink / raw)
First many thanks to everybody who has contributed!
> > One question regarding the DCEthreads (also Posix 1003.4a Draft 4)
> > under Digital UNIX V4.0F: is this library an emulation layer ontop of
> > Posix threads?
>
> Absolutely!
Thanks you David! Actually, I didn't ever dream getting an answer from
you. That's really *cool* :)
> Expert? Well, OK; you got it. As the person who architected and designed,
> and largely wrote, both DCE threads and the implementation of POSIX threads
> on "DEC OSF/1"/"Digital UNIX"/"Tru64 UNIX", I suppose I might just qualify.
I'm sorry saying that, but in your case the term "expert" is still too
weak... I would go for "wizard" or "guru" :)
> It's a tragedy that the DCE AES still calls out nonstandard and archaic "DCE
> threads". Unfortunately, OSF lost funding to maintain the AES before POSIX
> threads existed, so it's languished for 8 years in the dark ages.
Well things might change! TOG is considering releasing the DCE 1.22
environment under LGPL. This project, called openDCE, is currently
discussing tossing DCEthreads and migrating to Posix.1c. I think,
that's a step that has definitively to be done!
Loic.
P.S: Interested people about openDCE might look at
http://www.opendce.org
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-06-07 13:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-06 9:05 Is DCEthreads based on Posix thread under Digital Unix 4.0f? Loic Domaigne
2003-06-06 10:27 ` nospam
2003-06-06 16:46 ` L D Jones
2003-06-06 10:44 ` Alexander Terekhov
2003-06-06 11:29 ` David Butenhof
2003-06-07 13:26 ` Loic Domaigne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox