stop thread running in fiasco/L4

Adam Lackorzynski adam at
Fri Mar 7 00:42:15 CET 2008


On Wed Mar 05, 2008 at 16:59:44 -0800, hazwan wrote:
> Im curious to know, how can i stop a thread from running? Is there an API
> call to do this process? As far as i know, there is an API call for OK/L4 to
> stop a thread. How about fiasco? Thanks 

There's no direct call for doing to, i.e. a thread_start & thread_cont
call. But there's a way of achieving the same. Use ex_regs with the
L4_THREAD_EX_REGS_RAISE_EXCEPTION flag which will force the thread in
an exception state. When the thread should go on the exception handler
can just reply to the exception and the thread will go on where it was
stopped. You may also modify the exception handler while doing this.

Adam                 adam at

More information about the l4-hackers mailing list