Question: When a process gets terminated , even if the program doesn ' t explicitly free objects or free memory spaces , they will be released
When a process gets terminatedeven if the program doesnt explicitly free objects or free memory spacesthey will be released automatically. Why and how
my answer: When a process gets terminated, the operating system automatically reclaims the memory and resources that were allocated to it This includes all kernel and user space memory associated with the process, like memory for the process code, stack, heap, and any dynamically allocated memory. This cleanup helps prevent memory leaks and ensures that system resources are available for other processes.
am i right?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
