Query regarding Linuc Kernel Threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi People,

I have a query about linux process and thread model.
Every process has a 8KB of kernel stack, out of which
some 960 bytes are reserved for task_struct. Now,
task_struct uniquely identifies a process. That means,
if any kernel thread of currently running process
wants to access task_struct of the process, then it
has to retrieve the corresponding task_struct by
manipulating esp register, since task_struct lies at
the bottom of the stack area allocated to every
process. Now, above scenario is only possible if all
the kernel threads of currently running process share
the same kernel stack area allocated to the process.
Is this true that kernel threads share kernel stack
area allocated to a process?

Nitin


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux