Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* POSIX threads and Tru64 5.1a woes
@ 2002-04-21 18:50 Steve Young
  2002-04-23 12:29 ` David Butenhof
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Young @ 2002-04-21 18:50 UTC (permalink / raw)


I have been working on a simple little gnutella client over the past couple
of months, mostly to learn a little about network programming. It works fine
under Linux,(free|open|net)BSD and Solaris.
However, on Tru64 5.1a it chokes pretty bad.

After running for a minute or so with a live network connection, the process
goes into uninterruptible sleep.

Using ladebug and reverting to a previous version of the program that used
the usual fork rather than POSIX threads I am 99% sure that the problem is
related to how I am using the POSIX threads library. The program is based on
the example of a pre-threaded server in UNIX Network Programming 2nd ed. on
pages 758-759. The threads seem to just all get stuck sleeping in the call
to pthread_cond_wait() and they just don't catch the pthread_cond_signal().
Of course, the obvious point of failure is myself; a simple CS student (for
three more weeks... joy!)
However, it DOES work (tested for days and days) on Linux and Solaris
whereas I am lucky if it runs more than one minute on Tru64.

Has anyone ever experienced similar problems w/ POSIX threads and Tru64?

- Steve Young






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

end of thread, other threads:[~2002-04-25 12:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-21 18:50 POSIX threads and Tru64 5.1a woes Steve Young
2002-04-23 12:29 ` David Butenhof
2002-04-23 18:18   ` Thomas Losness
2002-04-24 13:00     ` David Butenhof
2002-04-24 15:13       ` Thomas Losness
2002-04-25 12:05         ` David Butenhof

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