no threads

Matthew Newhook matthew_newhook@stratos.ca
Wed, 29 Oct 1997 11:26:41 -0330


Sai-Lai Lo (S.Lo@orl.co.uk) did say on 10/29/97:
> I wonder whether it is better to let the application do the select() and
> the ORB registers its sockets and callback functions. In other words, a
> generic class library for registering sockets and callbacks may be a better
> way to integrate the ORB with other components of the applications. Could
> someone point to a design pattern that do just that?
> 
> Regards,
> 
> Sai-Lai
> 
> -- 
> E-mail:         S.Lo@orl.co.uk          |       Olivetti & Oracle Research Lab
>                                         |       24a Trumpington Street
> Tel:            +44 223 343000          |       Cambridge CB2 1QA
> Fax:            +44 223 313542          |       ENGLAND

I think the pattern your looking for is the reactor pattern.  Look at
ACE (http://www.cs.wustl.edu/~schmidt).

It's worth noting that OmniBroker (http://www.ooc.com) is single threaded
and handles all of these problems quite nicely.

Matthew
-- 
Matthew Newhook.  matthew_newhook@stratos.ca, http://www.engr.mun.ca/~matthew
Software Designer, Stratos Network Research.
w: (709) 364-5950, h: (709)-745-4346