Related to pthreads and timers in POSIX standard
Hi,
I have created two threads:Thread 1 and thread 2
In the main thread, i have put up a timer which generates a signal periodically when it expires, which reults in execution going to signal catcher function.
when this function is invoked, under certain condition it goes to thread 1 and under another condition it goes to thread 2.
The problem lies here that when it goes to thread2,i have a loop to process but it doesnt come out of the loop and hence from thread2, even though timer has expired . . where i am going wrong? any advice will be appreciated
Thanks
|