Can somebody provide me example of starting and stop an userdefined timer on PTHREAD concepts ?

Basically, like this. one thread started TIMER1, now other thread on TIMER1 with value x need to stop the TIMER1 and start TIMER2.

Please help me.