Created thread07.cpp sample program.