Wenxiu ,Huang share one handler , so you may add lock to some of your data structure in the handler. And and I think you can got the answer simply by having a try.
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 Yiming Zhang
