On Tue, 19 Feb 2013 12:01:55 +0530, kapil agrawal said:

> Do you mean process with PID 0 is the one, which runs in the background and
> serves the request from userland and goes to cpu_idle() if nothing to run.

No.  Large parts of the kernel run in kernel mode, but using the 'struct task'
of the related userspace process (in particular, most system calls work
this way).  Other large chunks borrow the 'struct task' and run under it
just so there's *a* process running.  And parts aren't in process context
at all, but interrupt context (so they aren't running as process code at all).

Attachment: pgpN6fkyAc3yG.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to