Connection Pool
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Connection Pool




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Connection Pool  
Sheth Raxit


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-07 01:20 PM


I searched few post here, and some other group, but I think, Concepts
of Connection pooling is discussed very little.

having some basic query.

1. creating N thread, every thread blocks on accept,  do some work,
close connection and again accept  (Richard Stven's TCP PreThreaded
Server, per-Thread accept)

can this be considered as  connection pool ?

*** thread is closing  fd return by accept and doing new accept
without calling pthread_exit,***


--Raxit






[ Post a follow-up to this message ]



    Re: Connection Pool  
Rainer Weikusat


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-07 01:20 PM

"Sheth Raxit" <raxitsheth2000@yahoo.co.in> writes:
> I searched few post here, and some other group, but I think, Concepts
> of Connection pooling is discussed very little.
>
> having some basic query.
>
> 1. creating N thread, every thread blocks on accept,  do some work,
> close connection and again accept  (Richard Stven's TCP PreThreaded
> Server, per-Thread accept)
>
> can this be considered as  connection pool ?

I think 'thread pool' would be more appropriate. Insofar I know it, a
'connection pool' is something intended to facilitate reuse of
already established connections to some database server.





[ Post a follow-up to this message ]



    Re: Connection Pool  
Sheth Raxit


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-07 01:20 PM

On Mar 26, 3:12 pm, Rainer Weikusat <rainer.weiku...@sncag.com> wrote:
> "Sheth Raxit" <raxitsheth2...@yahoo.co.in> writes: 
> 
> 
> 
>
> I think 'thread pool' would be more appropriate. Insofar I know it, a

Sorry for confusion...It is thread pool but is it connection pool
tooo.

or better  when creating connection pool, is it very simillar , as i
described here. (It may or may not be thread pool,but mostly it is) or
it is fundamentally different ?




> 'connection pool' is something intended to facilitate reuse of
> already established connections to some database server.

--Raxit






[ Post a follow-up to this message ]



    Re: Connection Pool  
David Schwartz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-27-07 06:18 AM

On Mar 26, 3:48 am, "Sheth Raxit" <raxitsheth2...@yahoo.co.in> wrote:

> Sorry for confusion...It is thread pool but is it connection pool
> tooo.

It is neither a thread pool nor a connection pool. It is not a
connection pool because it does not create more than one connection
and then assign tasks that require a connection an available
connection. It is not a thread pool because it does not create more
than one thread and then assign tasks that require a thread to an
available thread.

I suppose you could argue that it is sort of a thread pool, with
'accept' being the job assignment function and jobs being dispatched
to the pool by making connections. It certainly is not the typical
thread pool because the whole point of a thread pool is to assign jobs
to threads cheaply, and having to do a connection setup and tear down
for each job is not cheap.

DS






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:38 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register