Re: gpilotd & corba



On Wed, 16 Sep 1998, Eskil Heyn Olsen wrote:

> On Wed, 16 Sep 1998, Eskil Heyn Olsen wrote:
> 
> > 4) Currently, I'll store all requests as files /var/spool/gpilotd/$USER/,
> 
> 5) Anything against trying to use threads instead of looting the ORB's fds
> and selecting on them ? One thread for CORBA_ORB_run and one for the pilot
> stuff ?

Portability and synchronization.  You'll have to make sure that you
guarantee mutual exclusion for the various queues that are processed by
gpilotd.  If you want to do this though, go ahead.  Just write some nice
access functions for the elements that have to be accessed with locks :).
I prefer the single select method though, unless servicing the CORBA
requests takes a long time, in which case threading is the only way to go.

Manish Vachharajani
<mvachhar@vger.rutgers.edu>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]