Advice / best practice - thread connection pools / mutexes

Karl Pielorz kpielorz_lst at
Wed Apr 28 11:56:00 UTC 2010

--On 28 April 2010 04:12 -0700 Alfred Perlstein <alfred at> wrote:

> The most simple method is to do the following at startup:
> [snip wonderful sample code]
> This should provide for a connection pool, each thread
> can then call get_con() to get a connection, and should
> call put_con() when done with it.
> good luck.
> -Alfred

Thanks, that looks pretty much exactly what I'm looking for - thanks also 
to the other people who replied, I've certainly got a few options now 
(which is a big improvement on what I had before!).



More information about the freebsd-threads mailing list