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


Please Help Members By Posting Answers For Below Questions

Can I add mvc testcases in visual studio express?

587


What filters are executed in the end?

584


What are the Core features of ASP.NET MVC?

589


what is client wins and store wins mode in entity framework concurrency?

637


How can I tell what .net framework is installed?

499






If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

1967


What are the new enhancements done in default project template of asp.net mvc 4?

572


What are the 3 main components of an asp.net mvc application?

532


differences between poco, model first and data first approach?

585


Where are the routing rules defined in an asp.net mvc application?

539


what do you mean by navigation property?

585


Is dapper faster than entity framework?

526


What is Area in ASP.Net MVC?

607


mention what are the various methods provided by the dataset object to generate xml?

594


what is csdl?

577