Update thread2.cpp

add join