[omniORB] SINGLE_THREAD_MODEL

Duncan Grisby duncan at grisby.org
Fri Aug 1 13:50:33 BST 2003


On Wednesday 30 July, Serguei Kolos wrote:

> A simple question: I have 2 custom POAs created both with 
> SINGLE_THREAD_MODEL
> and 2 objects - obj1 registered with POA1 and obj2 registered with POA2.
> Do I have a guarantee that upcalls for the obj1 will be always done in 
> different thread
> then upcalls for the obj2.?

No. What the SINGLE_THREAD_MODEL guarantees is that only one thread
will call into that POA's objects at a time. It makes no guarantee
that it's always the same thread, and has nothing at all to do with
how threads are used by different POAs. There is no notion in the
CORBA standard, or in omniORB, of having separate threads for
different POAs.

> Does CORBA standard say something about that?

Read the POA chapter of the CORBA core spec.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list