[mkc2007] thread halt/resume
be020578 at inf.tu-dresden.de
Wed May 9 18:16:48 CEST 2007
I would like to know how to make a thread *not ready*. I tried to add a
function like halt_myself(), looked up the thread, invoked that function
and did a state_del( Thread_ready ) and ready_dequeue() from within.
after that i did a schedule() if the thread wants to halt itself.
Scheduling continued and the next time the halted thread was
considered as next_to_run it's state was still ready - why?
Additionally i would like to know what will/should happen if a thread is
halted and gets an ipc. I would prefer that it stays halted and blocks
the other thread as well - if this is possible/reasonable. Similarly a
thread *doing* ipc that is being halted should stay out of the ready
queue until it is resumed, therefore staying within its ipc handling for
a very long time. how to do that or is this unreasonable?
ciao - benjamin
More information about the mkc2007