From: Peter Sanger <peter.sanger@mailbox.swipnet.se>
To: Dilip Dasilva <dilip@best.com>
Subject: Re: Dec Unix 4.0B and threads
Date: 1997/05/02 [thread overview]
Message-ID: <336A29A8.2B2DC480@mailbox.swipnet.se> (raw)
In-Reply-To: 5kb3ip$jqt@shellx.best.com
Dilip Dasilva wrote:
>
> Hi,
>
> I am trying to compile a program that uses threads on Dec Unix 4.0B
> that compiled without a problem on Dec Unix 3.2.
>
> It uses posix threads so I have the following include file
>
> #include <pthread.h>
>
> The problem is that these files are different between 4.0B and 3.2.
> The 4.0B file does not contain the definitions for pthread_startroutine_t
> and pthread__addr_t . These definitions are included in
> /usr/include/pthread_exc.h. I noticed that there are two pthread.h
> include files - one in /usr/include/pthread.h and the other in
> /usr/include/dce/pthread.h . On 3.2 one of these files was
> a linked to the other.
>
> Does anyone know which include files I need to get my program to
> compile on 4.0B.
>
> Thanks, Dilip
3.2 uses Posix threads that are based on the draft for the Posix threads
standard. Dec Unix 4.0 uses a Pthread library that is based on the final
Posix thread standard. Unfortunately, there are a number of differences
between the draft and the final standard, and you will probably have to
make a number of changes in your thread handling code.
For a discussion of the differences between the draft and final standard
see e.g. "Pthreads Programming" by Bradford Nichols e.a., O'reilly.
(http://www.ora.com/catalog/pthread/noframes.html)
Peter
--
Peter Sanger E-mail: peter.sanger@mailbox.swipnet.se
Karlhovsvagen 17 Phone: +46 8 55069514
15137 Sodertalje, Sverige Fax: +46 8 55069514
next prev parent reply other threads:[~1997-05-02 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-01 4:00 Dec Unix 4.0B and threads Dilip Dasilva
1997-05-02 4:00 ` Peter Sanger [this message]
1997-05-02 4:00 ` Chris Cebelenski
1997-05-05 4:00 ` Dave Butenhof
1997-05-05 4:00 ` Brian O'Neill
1997-05-06 4:00 ` Peter Sanger
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