<font color="#0000ff" face="arial, helvetica, sans-serif">Hello List,</font><div><font color="#0000ff" face="arial, helvetica, sans-serif"><br></font></div><div><font color="#0000ff" face="arial, helvetica, sans-serif">This is what I am trying to do in </font><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,255);font-size:13px">linux kernel. </span><span style="color:rgb(0,0,255);font-family:arial,helvetica,sans-serif;font-size:13px">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.</span></div>
<div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#0000ff"><font face="arial,helvetica,sans-serif"><div><br></div><div>One approach probably is to set "<b>need_resched</b>" 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 ?</div>
<div><br></div><div>--</div><div>Sunil</div></font></font></div></div>