OmniThread Question on NT 4.0
Steve Brenneis
brenneis@SURRY.NET
Tue, 10 Mar 1998 21:48:15 -0500
How are you determining the number of handles? If you are using pview =
(process viewer that used to come with MSVC and I think is included in =
the Res Kit), a growing number of handles (as in quantity) is something =
to be worried about and means that ExitThread is not being called. =
However if you are referring to the thread handle number (as in its =
value), it is an assignment by the O/S and will continue to increase =
with every thread created until it reaches 2^32. Its value does not =
relate to the number of currently active threads.
Hope this is helpful.
----------
From: Elan Freedy
Sent: Monday, March 09, 1998 4:20 AM
To: omniorb-list@orl.co.uk
Subject: OmniThread Question on NT 4.0
<<File: ATT00000.htm>>
Greetings all,
I'm presently developing an application on NT, using omniORB, and am
therefore using omni threads for all my threading needs. The application
creates a lot of short lived detached worker threads which perform a =
small
task then disappear. When I monitor the application in the NT task =
manager
the number of threads, fluxuate within a reasonable boundary however the
number of "handles" seems to just increase. I've checked with the =
debugger
to verify that the omni thread destructor is being called properly which
calls CloseHandle()...however the number of handles seems to grow with =
no
bounds. Any ideas how I can fix this? or is this something that can be
ignored?
Thanks.
Elan Freedy=20