dataRace         : threads increasing an int one by one
raceCondition    : threads subtracting an amount from an int and
                   adding to another

randomWrite.cc   : threads writing a list of random numbers
randomWSync.cc   : threads writing a list of random numbers with mutex
synchroWrite.cc  : threads writing a list of random numbers with 
                   exclusive access to output stream
histoFill.cc     : threads filling a histogram with random numbers
synchroFill.cc   : threads filling a histogram with random numbers with 
                   exclusive access to the histogram
primeSimple.cc   : count prime numbers in an interval, dividing in 2 threads
                   using a function, with parameters in the operator
primeSFctor.cc   : count prime numbers in an interval, dividing in 2 threads,
                   using a functor, with parameters in the operator
primePCount.cc   : count prime numbers in an interval, dividing in 2 threads,
                   using a functor, with parameters in the constructor
primeResult.cc   : count prime numbers in an interval, dividing in 2 threads
                   and returning the result
primePTaskF.cc   : count prime numbers in an interval, dividing in 2 threads
                   and returning the result in a packaged_task
primePTaskC.cc   : count prime numbers in an interval, dividing in 2 threads
                   and returning the result in a packaged_task, using a functor
primeLambf1.cc   : count prime numbers in an interval, dividing in 2 threads
                   and returning the result in a packaged_task, using lambda
primeLambf1.cc   : count prime numbers in an interval, dividing in 2 threads
                   and returning the result in a packaged_task, using lambda
primeFuture.cc   : count prime numbers in an interval, dividing in 2 threads
                   and getting the result through std::async


to compile
c++ -Wall -o  randomWrite  randomWrite.cc -pthread
c++ -Wall -o  randomWSync  randomWSync.cc -pthread
c++ -Wall -o synchroWrite synchroWrite.cc -pthread
c++ -Wall `root-config --cflags` -o histoFill histoFill.cc -pthread `root-config --libs`
c++ -Wall `root-config --cflags` -o synchroFill synchroFill.cc -pthread `root-config --libs`
c++ -Wall -o primeSimple primeSimple.cc -pthread
c++ -Wall -o primeSFctor primeSFctor.cc -pthread
c++ -Wall -o primePCount primePCount.cc -pthread
c++ -Wall -o primeResult primeResult.cc -pthread
c++ -Wall -o primePTaskF primePTaskF.cc -pthread
c++ -Wall -o primePTaskC primePTaskC.cc -pthread
c++ -Wall -o primeLambf1 primeLambf1.cc -pthread
c++ -Wall -o primeLambf2 primeLambf2.cc -pthread
c++ -Wall -o primeFuture primeFuture.cc -pthread
