What does idle thread do

Adam Lackorzynski adam at os.inf.tu-dresden.de
Thu Sep 25 23:46:22 CEST 2014


Hi,

On Wed Sep 24, 2014 at 16:25:31 -0400, Yuxin Ren wrote:
> I want to know what kernel idle thread does.
> Does it just execute "halt" instruction or anything else?

Mostly it is calling a halt instruction but it can also do remote work.

> Where is code for the idle thread?

Please look for 'for (;;) idle_op()' in kernel_thread.cpp and
app_cpu_thread.cpp.



Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list