Linux Threads suspend/resume
===

I'm writing a code in which I have two threads running in parallel.

1st is the main thread which started the 2nd thread.
2nd thread is just a simple thread executing empty while loop.

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.