in Operating System retagged by
1,917 views
2 votes
2 votes
When an interrupt or a system call transfers control to the operating system, a kernel stack area separate from the stack of the interrupted process is generally used. Why?
in Operating System retagged by
by
1.9k views

1 Answer

1 vote
1 vote

Answer:

Kernel stack area separate from the stack of the interrupted process because:

  • To protect the operating system from crashing because of the poorly written user program.
  • To protect from the malicious user who may be able to use the stack data left by the kernel in the user program's memory space while returning from a system call.

 

by

Related questions