Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: android@netcom.com (Pramod Kalapa)
Subject: HELP: Question on DCE Threads
Date: Thu, 27 Oct 1994 15:16:25 GMT	[thread overview]
Message-ID: <androidCyC7rD.MKv@netcom.com> (raw)

I've just written a simple program using DCE threads (it is my first !).
Basically I want to create 2 threads which call a function to open a file
The thread creation call is as follows :

 if((pthread_create(&thread_hdl1, pthread_attr_default,
            (pthread_startroutine_t) open_file,
            (pthread_addr_t)NULL)) != 0)
        {
           fprintf(stderr,"%s\n","Unable to create thread1");
           exit(1);
        }

where open-file is the function to open the file. The creation routine
returns 0, which I assume is the valid value for a successful creation.
However, the thread doesn't enter the function "open_file". I've stepped
through the code with dbx and it just exits out of main. I've linked 
with the thread-safe library libc_r.a
Can someone please e-mail me as to what I might be doing wrong ?
I am using DCE 1.2 threads on AIX 3.2.5 on an IBM PowerPC. 
Thanks


             reply	other threads:[~1994-10-27 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-27 15:16 Pramod Kalapa [this message]
1994-10-27 22:26 ` HELP: Question on DCE Threads Miles_Krivoshia
1994-10-28 17:24 ` Brad Daniels
1994-10-31 14:37 ` Paul Roberts
1994-11-09 13:26 ` Rich Salz
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