Re: Poll threads
Posted in 1998
Luse Harold wrote:
> A quick question.
>
> If the sql hosts file has two entries for socket/tcp connections:
> DBSERVER NETTYPE HOSTNAME SERVICES
> server2 onsoctcp ibm1 infmx_service2
> server3 onsoctcp ibm1 infmx_service3>
> And the onconfig
> file has the following DBSERVERALIASES and NETTYPE entries:
>
> DBSERVERALIASES server2, server3
> NETTYPE soctcp,1,50,NET>
> Would the one poll thread listed in the onconfig file be able to poll both
> services listed in the sqlhosts file?
>
> ====================================================================
> Harold Luse Phone: (970) 491-4120
> Veterinary Teaching Hospital Fax: (970) 491-4123
> Colorado State University Pager: (970) 229-8173
> Fort Collins, Colorado USA E-mail: hluse@vth.colostate.edu
> ====================================================================
Yes. You would only have 1 poll thread, but you would have 2 listener
thread,
each creating an endpoint which they would listen to. Since we don't do
blocking
t_listen calls, the 1 poll thread would be responsible for polling the
endpoints and
waking the listener threads when an incoming connection request event had
occured
for the endpoint.
Jacques
--
********************************************************************
* Jacques P. Renaut "I'd dazzle you with brilliance *
* Informix Advanced Support if I only had the knack..." *
* email: jrenaut@informix.com #include <disclamier.h> *
********************************************************************