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:
pgpE0H8c7KP1V.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies