Thread + signal problem
Hi all,
I use itimers to create signals in a main process. If I create a pthread and it's running in an infinite loop I can't block any signal (pthread_sigmask()) on main process. But if I don't create the thread everything works as expected. What could be the problem? |
Is your pthread calling sched_yield() or hogging all of the process' time?
|
The reason is the way the pthread library works. Simply, everything interesting happens at the entry and exit of system calls (or the yield() function). Also, you should disable the signal on all other threads except the one you want it to go to.
|
Problem solved
Quote:
|
All times are GMT -5. The time now is 02:25 AM. |