[omniORB] about the multithread in omniORB

Duncan Grisby duncan@grisby.org
Tue Jul 2 07:37:00 2002


On Tuesday 2 July, Luke Deller wrote:

> Having said that, omniORB3 uses a thread-per request policy: it creates a 
> thread for each incoming request.

No it doesn't!  It uses thread per connection, and holds connections
open between requests. That's an important difference, since thread
creation is too expensive to do on a per-request basis.

> (You can also configure omniORB to be single-threaded, but that is useful 
> only in special cases).

No you can't!  omniORB is always multi-threaded. You can, as part of
the CORBA standard, create a POA with the single thread model (and
also main thread model in omniORB 4), but the ORB itself is always
multi-threaded.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --