What methods do operating systems use to prevent crashes or erratic behavior when one of my programs accidentally leaks memory or stack overflow?
What methods do operating systems use to prevent crashes or erratic behavior when one
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Briefly: Memory management.
Typically each process is allocated a limited (but usually adjustable) amount of stack space, so a single process can’t use up enough to cause problems for the system as a whole.
And if a process attempts to access memory outside what’s been allocated for it, that will (at worst) crash the process itself; this frees up the resources allocated for that process without stepping on other processes.