Asking another process sleep from another process or interrupt context

Sunil Agham sunil.agham at gmail.com
Fri Nov 30 19:42:29 EST 2012


Hello List,

This is what I am trying to do in linux kernel. When some event occurs;
Process X wants to tell process Y to un-schedule itself(Y) [ and change
state from "running or ready to run" to "not ready to run until told
otherwise" ]. Process X will take care of waking up Y later.

One approach probably is to set "*need_resched*" for process Y so that
schedular picks another process at the first opportunity. Is there any
other alternative ? Is it safe to do this from interrupt context instead of
process X's context ?

--
Sunil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121130/db7c2895/attachment.html 


More information about the Kernelnewbies mailing list