Created thread02.cpp sample program.