作业帮 > 英语 > 作业

英语翻译Your objects might not get garbage-collected.You might f

来源:学生作业帮 编辑:百度作业网作业帮 分类:英语作业 时间:2024/08/18 05:01:59
英语翻译
Your objects might not get garbage-collected.
You might find that the storage for an object never gets released because your program never nears the point of running out of storage.If your program completes and the garbage collector never gets around to releasing the storage for any of your objects,that storage will be returned to the operating system en masse as the program exits.This is a good thing,because garbage collection has some overhead,and if you never do it you never incur that expense.
英语翻译Your objects might not get garbage-collected.You might f
您的物体可能不会得到垃圾收集.
您可能会发现,存储的对象从来没有得到释放,因为您的计划从来没有接近点耗尽的存储空间.如果您的计划完成和垃圾收集周围从来没有得到释放的存储您的任何物体,即存储将返回到操作系统作为集体退出该计划.这是一件好事,因为垃圾收集有一些开销,如果你从来没有做到这一点你永远不会承担费用.