A C++ pthread example
