Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-28-2005, 04:24 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Difference b/t Kernel stack and User stack

Hi everybody

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

Old 06-28-2005, 12:55 PM   #2
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
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.
Old 09-29-2008, 08:40 PM   #3
Registered: Apr 2004
Location: Minneapolis
Distribution: Ubuntu
Posts: 45

Rep: Reputation: 15
Originally Posted by hazzyb View Post
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.


Good luck, hope this helps!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel stack overflow prital Programming 2 06-29-2005 10:12 AM
When is the user stack allocated? moadon Programming 1 04-12-2005 12:28 AM
kernel stack error installing... artofluke Linux - General 1 03-04-2005 10:21 PM
How do you increase a kernel stack size? ginda Linux - Newbie 4 01-24-2005 07:52 PM
How To interpret kernel stack trace kklier Linux - Enterprise 6 08-22-2004 10:24 AM

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration