I have a server that has two types of threads. Some persist throughout
the life of the process. Others are transient. Currently, I am
creating the transient threads using thr_create with the THR_NEW_LWP and
THR_DETACHED, as the following fragment indicates:
int err =
thr_create( NULL, NULL,
(void*) this, // Pass self as argument
THR_NEW_LWP | // Increase LWP count
THR_DETACHED, // Free resources on exit (nonjoinable)
My concern is whether the LWP count is decremented when the transient
threads die, or whether I am "leaking" some kind of resource.
Are there any caveats about THR_NEW_LWP ?
Currently, the server has reliability problems, but I am thinking that
it is Orbix-related.
Platform: Solaris 2.6
Micron Technology Texas, LLC