Does linux init process run in kernel or user mode? -
i trying learn linux kernel, in tldp linux kernel 2.0 book. init process or kernel thread don't know exact difference though. , run in physicial or virtual memory space? kernel related stuff use physicial memory space if process thing change.
can share knowledge/experience on that.
init user process other processes, using virtual memory. thing special init is 1 of 2 processes kernel started initially. when init started kernel, goes user mode. when init calls system call fork(), traps kernel mode, , kernel bunch of things create new process, , new process scheduled in future. when fork() returns, original process user mode.
btw, kernel using virtual memory, mapping of kernel memory addresses shared among processes.
Comments
Post a Comment