prateek


{ City } chandigarh
< Country > india
* Profession * software engineer
User No # 23915
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 3
Users Marked my Answers as Wrong # 0
Questions / { prateek }
Questions Answers Category Views Company eMail




Answers / { prateek }

Question { Volvo, 15820 }

can we call the garbage collector to run explicicitly?


Answer

But forcefully calling Garbage collector reduces the
performance. As when CLR runs Garbage collector
automatically it checks all the objects which are not used
for a long time and remove them. But if we use
System.GC.Collect(), it will shift the particular object to
cache. When CLR founds no object which is made to be free
then it will check the cache memory from there it will
remove that very object. So, how it is reducing the performance.

Is This Answer Correct ?    3 Yes 0 No