Created thread01.cpp sample program.