Re: [uClinux-dev] Execution threads in kernel

From: David McCullough (davidm@lineo.com)
Date: Thu Feb 01 2001 - 01:24:16 EST


Jivin Zhu, Yaozong lays it down ...
> A rookie question:
> 
>  What's the impact of calling kernel_thread( fn, arg, flags )?
> I notice that kernel_thread makes a *clone* syscall and then jump to *fn* and then makes a *exit* syscall. 
>  Seems kernel_thread does not return until after *exit* syscall, right?
>  Does the scheduler schedule the kernel threads, or the kernel threads just run one bye one? In another words, can there be more than one concurrent kernel threads on a point of time?

It is an independent process all of it's own.  It doesn't stop the current
thread in any way.  In other words,  you can have as many as you like doing
whatever you want concurrently (within reason :-)

Cheers,
Davidm

-- 
David McCullough:  Ph: +61 7 3435 2815  Lineo (The Embedded Solutions Company)
davidm@lineo.com   Fx: +61 7 3891 3630  PO Box 925, Kenmore QLD 4069, Australia
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:28 EDT