Re: Multi-threaded
- From: Toralf Lund <toralf lund pgs com>
- To: "orbit-list gnome org" <orbit-list gnome org>
- Subject: Re: Multi-threaded
- Date: Fri, 4 Jun 2010 12:47:59 +0200
Brent Baccala wrote:
On Wed, 2 Jun 2010, Toralf Lund wrote:
First question: Is this list actually alive???
Yes, barely. I'm a late comer, but it looks to me like the free
software community experimented with CORBA for a few years and then
(for some good reasons) largely abandoned it in favor of other
approaches.
Second question: Can anyone explain how to set up an ORBit2 server
so that it can process several requests in parallel via
multi-threading?
The single most important thing is to request threading when you
initialize the orb:
orb = CORBA_ORB_init(NULL, NULL, "orbit-io-thread", &ev);
I've not had any (client) threading problems since I switched from
"orbit-local-orb" to "orbit-io-thread". This causes a new thread to
be cloned to handle of the network I/O.
This might be useful, but it looks like I'm able to get everything to
work even without it. I've always used "orbit-local-mt-orb" rather than
"orbit-local-orb", though. I think that means CORBA_ORB_init() sets up
everything so that the ORB may be used across threads, but doesn't
actually add any threads of its own.
- Toralf
This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author.
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]