垃圾回收算法的实现原理_有关垃圾回收算法工作原理的动画指南

垃圾回收算法的实现原理

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:

这是三个值得您花费时间的链接:

  1. Net Neutrality, Walled Gardens, and the future of the the Open Internet (24 minute read)

    网络中立性,围墙花园和开放式互联网的未来( 24分钟阅读 )

  2. What are the SOLID principles, and how do they make your code cleaner? (12 minute watch)

    SOLID原则是什么,如何使您的代码更简洁? ( 12分钟观看 )

  3. 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:)

freeCodeCamp Washington, D.C.

freeCodeCamp华盛顿特区

Happy coding!

编码愉快!

– Quincy Larson, teacher at freeCodeCamp

– Quincy Larson, freeCodeCamp的老师

翻译自: https://www.freecodecamp.org/news/an-animated-guide-to-how-garbage-collection-algorithms-work-46ccdba2b216/

垃圾回收算法的实现原理

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值