Skip to contentSkip to conversation

pthread_sighandler

DISCUSSION Joy Mukherjee 2 participants 2 messages Mar 19, 2002

lore
Share & tools
lore
#0 lore raw

hi !
I apologize for this this probably inappropriate question but i am writing as
a last option - how can I know at which instruction (the IP) a thread was interrupted by SIGALRM ? Thank you very much and sorry once again .

Joy.

Joy Mukherjee
Graduate Student,
Deptt. of Computer Science,
Virginia Tech.

#1 lore raw
Quoted 6 lines · Joy Mukherjee

hi !
I apologize for this this probably inappropriate question but i am writing as
a last option - how can I know at which instruction (the IP) a thread was interrupted by SIGALRM ? Thank you very much and sorry once again .

I am not going to do all your research for you, but you just need to set up a signal handler for SIGALARM with the capability of recovering the process state. I think this is the third parameter in the handler call. You will need to look at the signal man pages to find out how to do this and, most likely you will need to find the header file that describes the state structure to figure out what member has what you want.

Signature · 3 lines
George           [email protected]
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/