Home > Net > Where is the meaning of.net on GC recycling?
Where is the meaning of.net on GC recycling?
Time:01-07
Believes that many people have talked to a job interview GC, recycling of GC are some related articles, such as: When the GC 1, when the application is assigned a new object, the size of the generation of budget GC has reached a threshold, such as GC of generation 0 is full; 2, active code explicitly call System. GC. Collect (); 3, and other special circumstances, for example, Windows reports out of memory, the CLR unload AppDomain, CLR closed, and even some extreme cases system parameter change can also lead to GC recycling,
Translation, this statement comes from the Microsoft related articles on the threshold of 1 case, explain very general very abstract, did not give a specific value, how to configure, and so on, for example, I wrote a program run how to know when I reached the threshold to trigger the recycling,
So the question comes, the.net is based on the language of the host, the GC recycling trigger is very fuzzy and uncertain, pay attention to the significance of GC in where? Whether the unmanaged resources (files, database connection, etc.) it is enough to release?
CodePudding user response:
.net little attention, but if with unmanaged code development have to think about. This is very annoying, all kinds of nausea