Exercise: synchronize the output of the program unsynchronizedStream.cpp

Exercise

 

Solution

 

  • synchronizedOutput.cpp