I am on a mac using terminal and atom and I am following along on [this](http://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm) tutorial on pThreads for my c++ application. When I run the exact command prompt into terminal( gcc test.cpp -lpthread), I get tons of lines of text and then this :
symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If instead I type: g++ test.cpp -lpthread, then I get no errors, but I get a very broken piece of text seen here:
You need all the output for a line to be done in one function, then place a mutex at the top of that function so only one thread at a time can execute it.