LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Difference b/t Kernel stack and User stack (http://www.linuxquestions.org/questions/linux-software-2/difference-b-t-kernel-stack-and-user-stack-337933/)

hazzyb 06-28-2005 03:24 AM

Difference b/t Kernel stack and User stack
 
Hi everybody

can anyone help me out with the difference among kernel stack and user stack...


Thanks
Hazzy

Half_Elf 06-28-2005 11:55 AM

I really not sure about what I'll tell you but I think kernel stack handle "all" the memory, as the kernel control the allocation of free memory. I'm not quite sure about "user" stack, but I believe the kernel memory "given" to application that need it is handled as a stack as well, which may be what you call "user stack".

It's like telling your application the pity X MB that have been given is "all we have" until it's full (then the kernel give some more).

I don't know if this help you.

meonkeys 09-29-2008 07:40 PM

Quote:

Originally Posted by hazzyb (Post 1718193)
can anyone help me out with the difference among kernel stack and user stack...

Could you say more about what you're trying to figure out?

All I know about the two stacks is that both are required since instructions executed in user-mode should not be able to read or modify the stack used by the kernel. Also, using a separate stack in the kernel might help to make sure the kernel never runs out of stack space.

Related:
http://linux.derkeiler.com/Mailing-L...4-10/3194.html

Good luck, hope this helps!


All times are GMT -5. The time now is 10:32 PM.