in Operating System
922 views
1 vote
1 vote
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
922 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