Service handler is not thread-safe and each thread share the same instance of handler. It is just like the servlet if you know java web programming.
On Mon, Nov 8, 2010 at 1:02 PM, Wenxiu Huang <[email protected]> wrote: > Hi, > > I'm using TThreadPoolSever in C++. My service handler has a heavy > initialization cost. > I'm wondering if each thread in the thread pool has its own independent > initialization process or just share one? > > If not share, how to optimize it? > > -- > From: > Wenxiu.H > -- Best Regards Jeff Zhang
