title: Linux Threads suspend/resume
body: <p>I'm writing a code in which I have two threads running in parallel.</p>
  
  <p>1st is the main thread which started the 2nd thread.
  2nd thread is just a simple thread executing empty while loop.</p>
  
  <p>Now I want to pause / suspend the execution of 2nd thread by 1st thread who created it.
  And after some time I want to resume the execution of 2nd thread (by issuing some command or function) from where it was paused / suspended.</p>