垃圾回收算法的实现原理
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)
您可以在此处阅读所有相关内容( 阅读5分钟 )
Here are three links worth your time:
这是三个值得您花费时间的链接:
Net Neutrality, Walled Gardens, and the future of the the Open Internet (24 minute read)
网络中立性,围墙花园和开放式互联网的未来( 24分钟阅读 )
What are the SOLID principles, and how do they make your code cleaner? (12 minute watch)
SOLID原则是什么,如何使您的代码更简洁? ( 12分钟观看 )
12 free things you can do to jump-start your UX Design career (9 minute read)
您可以做12项免费的事情来快速启动UX设计事业(需阅读9分钟 )
想到的一天: (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.
通过CommitStrip进行 Webcomic。
当天的研究小组: (Study group of the day:)
Happy coding!
编码愉快!
– Quincy Larson, teacher at freeCodeCamp
– Quincy Larson, freeCodeCamp的老师
垃圾回收算法的实现原理