Memory Management: A Book
00:00 Memory management is the process of managing the memory available on a system. This is especially important on microcomputers, which may only have a few kilobytes of memory instead of the several gigabytes your computer probably has. If memory isn’t managed properly, your programs might crash and you might lose important data that you’re working with.
00:21 Imagine if your document just started randomly scrambling the letters you typed after you’ve typed them. And if your system runs out of memory, it may become unusable or unstable. Memory management is a critical job.
00:48 This is one of the most important jobs for the OS—making sure that the memory assigned to your running web browser is not used, say, by your email client. At another level, we have memory management within Python itself.
01:03 Python makes sure that any programs you have running run safely and efficiently. It makes sure that memory assigned to one variable is not simultaneously used by another. Exactly how this happens is the focus of this course.
01:19 Memory is like an empty book intended for short stories. Eventually, different authors will come along and they’ll write in their own stories. Since they aren’t allowed to write over each other, they must be very careful about which pages they write in.
01:46 This book is around for a really long time, so after a while some stories are no longer relevant. From time to time, the memory manager calls in his buddy the garbage collector to come along and erase old stories that nobody’s reading.
Become a Member to join the conversation.