ThreadManager initialization