Still don't know how branches work. Modified threadDemo to switch to pthreads
threadDemo compiles with C++ threads but global data