Re: Multi Thread App
Posted in 1998
In article <68tpjb$q9j@cssun.mathcs.emory.edu>, "Art S. Kagel" <kagel@ns1.bloomberg.com> writes >On Tue, 6 Jan 1998, Alexander Jaremenko wrote: > >You use the CONNECT TO ... AS <connection name> statement repeatedly with >different connection names (which can be managed in host variables) to open >multiple connections. Once a connection is open it is either active or >dormant. To make a connection active use the SET CONNECTION <connection >name> command for any dormant connection. To make a connection dormant use >the SET CONNECTION <connection name> DORMANT in the thread for which that Where is that documented? >connection is currently active. Once a connection is dormant any thread >within the application can activate it and take it over. In this way you >could have either a set of connections dedicated to particular threads or >have a pool of connections which a pool of threads can access as needed. >(For example to build a threaded web server that maintains a set of >connections identified using a magic cookie returned to the client, any >available thread could pick up the request and find the connection >associated with the cookie value and activate it to continue processing a >request.) > >Hope that this helps. > >Art S. Kagel, kagel@bloomberg.com > -- David Williams Maintainer of the Informix FAQ Primary site (Beta Version) http://www.smooth1.demon.co.uk Official site http://www.iiug.org/techinfo/faq/faq_top.html I see you standin', Standin' on your own, It's such a lonely place for you, For you to be If you need a shoulder, Or if you need a friend, I'll be here standing, Until the bitter end... So don't chastise me Or think I, I mean you harm... All I ever wanted Was for you To know that I care