Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* pthreads for tru64
@ 2002-03-09  0:46 4Front Technologies
  2002-03-09 11:00 ` Martin Heller
  2002-03-11 12:29 ` David Butenhof
  0 siblings, 2 replies; 3+ messages in thread
From: 4Front Technologies @ 2002-03-09  0:46 UTC (permalink / raw)


Hi,

I am trying to compile an application that uses pthread.h and libpthread.a and I need
to know where to find "posix" compatible pthreads?. I only see dce compatible pthread.h
in /usr/include/dce. Unfortunately this app doesn't like dce pthreads.

best regards
Dev Mazumdar
-- 
-----------------------------------------------------------
4Front Technologies
4035 Lafayette Place, Unit F, Culver City, CA 90232, USA.      
Tel: (310) 202 8530		URL: www.opensound.com
Fax: (310) 202 0496 		Email: info@opensound.com
-----------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pthreads for tru64
  2002-03-09  0:46 pthreads for tru64 4Front Technologies
@ 2002-03-09 11:00 ` Martin Heller
  2002-03-11 12:29 ` David Butenhof
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Heller @ 2002-03-09 11:00 UTC (permalink / raw)


what about using:

#include <pthread.h>
#include <tis.h> /*mostly usefull for libs */ ???

compiling with:
cc -o myprog myprog.c -pthread

For other thread related questions read the excellent
documentation "Guide to DECthreads" (V4.0 docs) , from
V5.0 on it's called "Guide to the POSIX Threads library"

M. Heller

4Front Technologies wrote:

> Hi,
> 
> I am trying to compile an application that uses pthread.h and libpthread.a and I need
> to know where to find "posix" compatible pthreads?. I only see dce compatible pthread.h
> in /usr/include/dce. Unfortunately this app doesn't like dce pthreads.
> 
> best regards
> Dev Mazumdar
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: pthreads for tru64
  2002-03-09  0:46 pthreads for tru64 4Front Technologies
  2002-03-09 11:00 ` Martin Heller
@ 2002-03-11 12:29 ` David Butenhof
  1 sibling, 0 replies; 3+ messages in thread
From: David Butenhof @ 2002-03-11 12:29 UTC (permalink / raw)


4Front Technologies wrote:

> I am trying to compile an application that uses pthread.h and libpthread.a
> and I need to know where to find "posix" compatible pthreads?. I only see
> dce compatible pthread.h in /usr/include/dce. Unfortunately this app
> doesn't like dce pthreads.

What version of Tru64 UNIX are you using? One might infer from your use of 
the term "tru64" that you're using something relatively recent, but it's 
hard to be sure.

If you should chance to actually be using DEC OSF/1 3.x, then you need to 
upgrade -- it didn't have POSIX threads. The standard only became final as 
we were developing Digital UNIX V4.0.

If you're on V4.0x or later, then you'll find the POSIX thread header file 
precisely where it must be, in /usr/include/pthread.h. (#include 
<pthread.h>.) The DCE thread header files remain in /usr/include/dce/ but 
you really shouldn't be using them. (Certainly not if you want POSIX 
threads.)

V4.0x, however, lacked a supported libpthread.a. You should be using the 
shared library, /usr/shlib/libpthread.so. If you really needed, for one or 
another bizarre reason, to use a static archive, then you can install an 
optional development kit (I don't remember the name and won't bother to 
look it up right now), but beware that it won't continue to work on newer 
versions or necessarily even patch kits.

This changed, due to popular demand, with the release of Tru64 UNIX V5.0, 
which does have a supported libpthread.a on the standard kit. You still 
shoudln't use it, though. The shared library is better. With it you get 
full development support (the debugger and other tools like Visual Threads 
can't fully support threaded programs built against the static archive). 
Also, despite the requirement for continued binary compatibility with old 
static images, the private kernel interfaces used by the thread library do 
change now and then, and you'll lose efficiency (and sometimes the full 
effect of bug fixes) if you're using an old static.

/------------------[ David.Butenhof@compaq.com ]------------------\
| Compaq Computer Corporation              POSIX Thread Architect |
|     My book: http://www.awl.com/cseng/titles/0-201-63392-2/     |
\-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-11 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-09  0:46 pthreads for tru64 4Front Technologies
2002-03-09 11:00 ` Martin Heller
2002-03-11 12:29 ` David Butenhof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox