583 Views

Whenever Python exits, why isn’t all the memory de-allocated?


srikarkandukuri467 24th Oct, 2021
Answer (1)
Nitin Mereddy 24th Oct, 2021

Whenever Python exits, especially those Python modules which are having circular references to other objects or the objects that are referenced from the global namespaces are not always de-allocated or freed.

It is not possible to de-allocate those portions of memory that are reserved by the C library.

On exit, because of having its own efficient clean up mechanism, Python would try to de-allocate every object.

Related Questions

UPES Integrated LLB Admission...
Apply
Ranked #28 amongst Institutions in India by NIRF | Ranked #9 in India by QS University Rankings 2023
Jindal Global Law School Admi...
Apply
Ranked #1 Law School in India & South Asia by QS- World University Rankings | Merit cum means scholarships
Symbiosis Law School Pune Adm...
Apply
NAAC A++ Accredited | Ranked #5 by NIRF
Nirma University Law Admissio...
Apply
Grade 'A+' accredited by NAAC
Nirma University MBA Admissio...
Apply
Highest CTC 70 LPA | Avg CTC 11.22 LPA | Ranked #55 by NIRF
ISBR Business School PGDM Adm...
Apply
Ranked as Platinum Institute by AICTE for 5 years in a row | Awarded Best Business School of the Year
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books