I want to write a module which will spawn two kthreads where kthread-1 will
send signal X to kthread-2 and kthread-2 has registered a signal handler to
catch signal X. When the signal X is caught by kthread-2, it will execute
its signal handler.

Just am exploring signal handing and its intricacies, so thought of this
exercise. Is it possible ?

On Fri, Aug 14, 2015 at 6:10 PM, Pranay Srivastava <[email protected]>
wrote:

> On Fri, Aug 14, 2015 at 5:38 PM, KASHISH BHATIA
> <[email protected]> wrote:
> >
> > Is it possible to send signal from one kthread to another kthread using
> signal apis defined in signal.h and signal.c. Also I want to override the
> default behavior of a signal handler. How can I achieve this ?
> >
> You probably want to do a "notify?" i think.  Care to elaborate more
> on what exactly you are trying to do? If it's information you need to
> pass between 2 kthreads then signal handling is not a good idea there
> are other mechanisms you can use.
>
>
> >
> > --
> >
> > Regards,
> > Kashish Bhatia
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > [email protected]
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>
>
>
> --
>         ---P.K.S
>



-- 

Regards,
Kashish Bhatia
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to