Re: Signals and threads



Hi,
The exact scenareo is i have 7 threads in my application
When a hardware interrupt occures, it will trigger the isr which
internally sends signals to a list of threads which are intrested.
Here all the threads should recive the signal and should execute the
corresponding handler seperately.Also note that all the 7 threads are
not waiting for any other operation and is executing simultaneously.
Also in linux we have only SIGUSR1 and SIGUSR2 for user purpose

I am sending the signal using

pthrread(threadID,SIGUSR1);
Thanks
thomas

.



Relevant Pages

  • Re: Why cant I set the priority of softirq-hrt? (Re: 2.6.17-rt1)
    ... around schedule or just before the task returns to user-space. ... as you might delay async signals otherwise. ... I was more thinking along the lines of having a "message" where threads can post functions to each other to be executed in the target context. ... If this should be safe you can't just preemp and execute these functions anywhere in a thread. ...
    (Linux-Kernel)
  • Re: Pthread waiting for two signals??
    ... How would you use semaphores to solve OP's question? ... Thread C must wait for the two signals S1 and S2 to execute. ... Well, the simpliest way is ...
    (comp.programming.threads)
  • Re: Design Questions on Termination
    ... but SIGUSR1 is designed for applications ... POSIX requires that the standard POSIX signals be available to applications. ... but what about OpenVMS or the Win32 "pthread" library, which don't have real UNIX signals at all? ...
    (comp.programming.threads)
  • Re: Signals, threads and the use of SIGUSR1
    ... > thread waiting for one of these signals whose task is to logically stop ... > the other threads and terminate. ... > 'SIGUSR1' to the thread above and the application normally ends. ...
    (comp.lang.cpp)
  • Re: Signals, threads and the use of SIGUSR1
    ... > thread waiting for one of these signals whose task is to logically stop ... > the other threads and terminate. ... > 'SIGUSR1' to the thread above and the application normally ends. ...
    (comp.unix.programmer)