[659] in Pthreads mailing list archive
General Thread Info
daemon@ATHENA.MIT.EDU (James Rauser)
Thu May 15 04:45:38 1997
Date: Thu, 15 May 1997 10:35:50 +0200
From: James Rauser <rausejme@kou3.ina.de>
To: pthreads@MIT.EDU
Hi all,
is this list the right place to ask questions about pthreads in
general, or is it restricted to discussion on Proven's pthreads?
Anybody know of other thread-related lists?
I'm trying to integrate threads into a language interpreter which
runs under HP-UX 10.20, AIX 4.x, SOLARIS 2.5 and Digital Unix,
using the platform-native pthreads interface in each case.
Under HP-UX and Digital Unix, the pthread's library is actually
just a layer over the DCE thread system (CMA, Common Multithreaded
Architecture), and these systems are making me crazy. I have two
major problems:
1. The library doesn't seem to manage memory for the thread
stacks very well. I have a server with one thread per socket
connection, and cliens swhich cyclically creates a bunch
connections and closes them; the server process grows without
bound, even though the connection threads are terminating
properly.
2. There appears to be a strange interaction between the thread
library and fork/exec under HP-UX; exec() appears to
somehow suspend all threads which existed at the time
of the exec(). The "main" thread of the above-mentioned
server monitors the terminal for interactive commands; if
do a fork-exec in that thread, the thread which is monitoring
the listen-socket (blocked in accept()) never gets scheduled
again, although the listen socket is still okay.
If anyone has any experience with CMA threads, or knows of additional
sources of information, I would be eternally grateful (this stuff
has a deadline in two weeks!).
Thanks, Jim
--
===================================================================
James S. Rauser rausejme@kou3.ina.de
Ina Werk Shaeffler KG/Abt. KOU3 +49 9132 82 32 43
Industriestrasse 1-3 91074 Herzogenaurach, Germany