An animated guide to how Garbage Collection algorithms work
Garbage Collection is the process of cleaning up a computer's memory by getting rid of data that's no longer needed by a program. There are several algorithms for doing this. (Black squares represent free memory.) Here's a "reference counter" garbage collector:
Here's a "mark sweep" garbage collector:
Here's a "copy" garbage collector:
And here's what happens if you don't bother with garbage collection until you're done:
You can read all about these here (5 minute read) Here are three links worth your time:
Thought of the day:"Securing a computer system has traditionally been a battle of wits: the penetrator tries to find the holes, and the designer tries to close them." — Gosser Funny of the day:
Webcomic by CommitStrip. Study group of the day:
Happy coding! – Quincy Larson, teacher at freeCodeCamp |
![]() |
Monday, 20 March 2017
An animated guide to how Garbage Collection algorithms work
Subscribe to:
Post Comments (Atom)








No comments:
Post a Comment