Created thread10.cpp sample program.