Re: What does idle thread do
Yuxin Ren <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Message-ID | <CAAKbDrf5KSZ9p=syOEPs9tFnO1NG5C7KsP1aFfwLP_6LbGKUsg@mail.gmail.com> |
Thank you very much. I have a further question. The idle thread creates another two threads--sigma0_thread and boot_thread (in Kernel_thread::init_workload in kernel_thread-std.cpp file ). I am curious about what their priority is and when they finish. In addition in my test, I only have a single thread doing memory map and unmap. But I find it is always preempted by another two threads. I do not know what they are. Could you give me some hints? Thank you again. Yuxin On Thu, Sep 25, 2014 at 5:46 PM, Adam Lackorzynski < [email protected]> wrote: > 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 [email protected] > Lackorzynski http://os.inf.tu-dresden.de/~adam/ > > _______________________________________________ > l4-hackers mailing list > [email protected] > http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers > _______________________________________________ l4-hackers mailing list [email protected] http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers