如何强制垃圾收集器运行? [英] How to force garbage collector to run?
本文介绍了如何强制垃圾收集器运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
记者问我今天这个......是有答案吗?
Interviewer asked me about this today ...is there an answer ?
推荐答案
System.GC.Collect()
力垃圾收集器运行。这是不推荐,但如果情况出现时都可以使用。
System.GC.Collect()
forces garbage collector to run. This is not recommended but can be used if situations arise.
这篇关于如何强制垃圾收集器运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文