Object-Oriented Multithreading Using C++