[omniORB] omniORB threads dieing

Duncan Grisby dgrisby@uk.research.att.com
Tue, 12 Feb 2002 10:00:50 +0000


On Monday 11 February, "Schmidt Henning (BNS USA)" wrote:

> Can someone give me a hint if there is a way to switch off this housekeeping
> of thread-lifetimes?

It's impossible to stop omniORB from removing the threads it creates.
It uses the thread per connection model, so when a connection goes
away, the thread associated with it is removed. If you turn the
connection scanning off on both the server and the clients, the
threads will stay around for as long as the clients stay alive, but
they will still be deleted when the clients exit.

In omniORB 4, omni_thread has support for thread-specific data that is
automatically deleted when the thread finishes. You could use that as
a hook to remove your per-thread state. There's no support for that in
omniORB 3.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --