[okl4-developer] idle magic

Malcolm Purvis malcolmp at ok-labs.com
Thu May 24 10:16:09 EST 2007


>>>>> "Jorge" == Jorge Torres <jorge.torres.maldonado at gmail.com> writes:

Jorge> I'm trying to understand what happens at the
Jorge> CONTINUATION_FUNCTION(init_all_threads) at schedule.cc, and it
Jorge> seems to me that idle thread should at some point turn into the
Jorge> iguana_server (by Scons??, yeah IM LOST!!), since it seems to
Jorge> start right after  ACTIVATE_CONTINUATION(idle_thread) call.

Hi Jorge,

The idle and iguana server threads are two separate things in OKL4.

As the name suggests, the idle thread is the thread that is run when
there is nothing else to do.

Iguana server is the root server or root task.  This is just a normal
thread with two special properties:

1) It is started by the OKL4 kernel at boot time.
2) It runs in the root address space, which gives it special access
   rights.

Scon's involvement in the process is to tell the OKL4 kernel the start
address of the root task (and to get everything built, of course).

I'm not an expert on the continuation code, so I'll leave those
questions for others to answer.

Malcolm

-- 
                    Malcolm Purvis <malcolmp at ok-labs.com>



More information about the Developer mailing list