Question OS-BAS-0075
HardWhy does an operating system keep a separate kernel stack for each process?
- A.
To store file contents
- B.
To save memory
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
OS Basics question
Why does an operating system keep a separate kernel stack for each process?
To store file contents
To save memory
Sign up free to see the answer and a step-by-step explanation.
So that system calls and interrupts can run safely without trusting or corrupting the user stack
Because user stacks are read-only