[omniORB] Omni Connection Model

Duncan Grisby dgrisby@uk.research.att.com
Mon, 26 Nov 2001 10:54:33 +0000


On Sunday 25 November, Gregory Giguashvili wrote:

> Can I allocate a fixed amount of threads handling incoming connection
> requests in Omni? The problem I try to address here is threads being born
> and dying all the time... I'm interested in having dedicated threads
> handling the connections.

omniORB keeps threads and connections alive between calls in its
thread per connection model, so it doesn't create/destroy threads
particularly often unless it is being contacted by a huge number of
different clients.

> Looks like I need to have a thread pool to handle incoming connections... I
> know that Omni doesn't support thread pools. Maybe, there is another way of
> doing so?

There's no way of doing it with omniORB 3. omniORB 4 has a thread pool
model, so that solves your problem.

Cheers,

Duncan.

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