1.init core thread. 2.fixed error in work_thread