Created thread06.cpp sample program.