Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > something about the process stack!

something about the process stack!

Forum Windows XP : Windows XP General Discussion - something about the process stack!

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

You know when a process executes a TRAP or is interrupted, the operating system uses a separate stack to execute any operating system code rather than the stack of the current process. Anyone know why the operating systems designers select this type of implementation?

Sponsored Links
Register or log in to remove.
- 0 +

Based on what I know, there are two main reasons to do this:

1) It is safer, the OS stack is protected such that other process can't corrupt it. Which is easily done with bad programming.

2) The OS has access directly to kernel functions, which are not available to other process. It can't thus put them on the stack or else there would be some access violation.

In ancient times they had no statistics so they had to fall back on lies

Reply to goloap
- 0 +

Can an ordinary process halt the system? If it accesses the hardware so much and directly, there's a risk.

/\/\ito

Reply to mito
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > something about the process stack!
Go to:

There are 1046 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them