From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc1e,33970c6687e623fc,start X-Google-Attributes: gidffc1e,public X-Google-Thread: fa528,33970c6687e623fc,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-06-06 02:05:58 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: loic-dev@gmx.net (Loic Domaigne) Newsgroups: comp.programming.threads,comp.unix.tru64 Subject: Is DCEthreads based on Posix thread under Digital Unix 4.0f? Date: 6 Jun 2003 02:05:57 -0700 Organization: http://groups.google.com/ Message-ID: <3e0374e6.0306060105.7b18a479@posting.google.com> NNTP-Posting-Host: 195.52.122.81 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1054890357 7973 127.0.0.1 (6 Jun 2003 09:05:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 6 Jun 2003 09:05:57 GMT Xref: archiver1.google.com comp.programming.threads:16476 comp.unix.tru64:10004 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.