add C++ Manage-thread 2