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?
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
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.