[omniORB] Main Thread Mode - POA Questions
Duncan Grisby
duncan at grisby.org
Sun Nov 16 21:17:32 GMT 2003
On Thursday 13 November, Craig Wright wrote:
> Thank you. This is what I was looking for, however the line:
>
> root_poa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL)
>
> should have (for my case) been:
>
> root_poa->create_thread_policy(PortableServer::MAIN_THREAD_MODEL)
Unless you have a very very good reason, you should not use the main
thread model. For the vast majority of situations, the single thread
model is sufficient, and it's much more efficient.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list