Created thread09.cpp sample program.