Hi everyone...
I am new in this forum... hope i can help someone anytime
I have a problem.. i have a kind of structure, simple list structure and i need to have one timer for each node of the list...
I wrote a program, where each node has a pthread associated with it, so, when I create and add a new node to the list, this thread starts to run... and it does!!!!
I add a signal (sigalarm) and and used the setitimer..... so with this i catch the alarm signal and it works well, but just for one thread....
Whe i add another thread, its timers run, but not the first thread's timer...looks like, i just can have one timer for the whole programm, and i need to have one timer for each thread....
Can anyone help me?.... please.....
If someone knows, other thing could help me is to get a way to interrupt a timer when it is running... i mean, pause, reset or stop a timer at any time....
Thanks