Created thread05.cpp sample program.