title: Reporting a thread progress to main thread in C++
body: <p>In C/C++ How can I make the threads(POSIX pthreads/Windows threads) to give me a safe method to pass progress back to the main thread on the progress of the execution or my work that I’ve decided to perform with the thread.</p>
  
  <p>Is it possible to report the progress in terms of percentage ? </p>