Difference b/t Kernel stack and User stack
can anyone help me out with the difference among kernel stack and user stack...
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.
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.
Good luck, hope this helps!
|All times are GMT -5. The time now is 09:43 PM.|