can we call the garbage collector to run explicicitly?
Answer Posted / prateek
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 |
Post New Answer View All Answers
Explain tempdata in asp.net mvc?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?
What is the .net framework and how does it work?
Can I uninstall microsoft .net framework?
What are the two ways to add constraints to a route?
Difference between ASP.NET MVC and ASP.NET WebForms?
Is http stateful or stateless?
What operating systems will the .net framework 3.0 be available for?
What is storage model? : Entity framework
What is the difference between ViewData, ViewBag and TempData?
what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?
what is complex type?
What is .net core framework?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Name a few different return types of a controller action method?