Demonstration of C++ threading and stuff