[69] in Pthreads mailing list archive
Resource exhaustion
daemon@ATHENA.MIT.EDU (Stan Guillory)
Thu Aug 10 22:48:55 1995
Date: Thu, 10 Aug 95 19:34:49 CDT
From: guillory@ncsa.uiuc.edu (Stan Guillory)
To: pthreads@MIT.EDU
I built the pthreads package under sunos 4.x. I then
wrote a simple client-server pair of apps. The server
creates a thread for each client request. The client
serializes the requests so that only one thread should
exist at a time. When I have the client send one the
order of 1000 requests, the server eats up more and more
ram to the point where it cannot create anymore threads
and the system is brought to its knees.
I call pthread_exit() explicitly at the end of my
thread function (although I didn't think this was
necessary since it returned before I put this in).
Is there some cleanup API function I am missing? We
were considering using the pthreads package to implement
the next version of NCSA HTTPd, which we were hoping
could be multi-threaded (and portable).
Thanks for any help you can give me.
Stanford S. Guillory
NCSA-University of Illinois
HTTPD Development Team
guillory@ncsa.uiuc.edu