Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stack Setup in Operating Systems

Status
Not open for further replies.

ekanth

Programmer
Jul 28, 2001
28
0
0
US
I'm on the way developing my own OS. How should I setup stack in an Operating System? If an user process is to be initiated should I know it should have a separate stack from the kernel's one. But the thing is that should I need to have different stack between user processes. If so what could be the optimal size of the stack? I dont know whether I am clear this time. If not please inform.
Please Help.
Ekanth Treat the daily build of a project as the heartbeat of the project. If there's no heartbeat the project is dead.
 
Any modern computer OS will have separate stacks (and address spaces) for each process. The kernel should execute in its own address space and run in processor supervisor/privileged mode. Additionally you should implement your design using virtual memory, allowing any process's stack (or heap) to grow arbitrarily.

Mark.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top