use thread to realize

change in the base of version of 5.7