Results 1 to 2 of 2
I am creating a program which will have 2 threads. I want two of them to suspend themselves for a fixed period of time (which is different for both of ...
- 04-23-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 13
pthreads , signals and alarm
I am creating a program which will have 2 threads. I want two of them to suspend themselves for a fixed period of time (which is different for both of them).
They have to be woken up by an alarm /SIGALRM/ set timer or something similar.
How do I do it?
I am using Linux with pthreads library
- 04-23-2008 #2
Use sigtimedwait(); google it to find out how.
But see also my answer here.--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote