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
Can I add mvc testcases in visual studio express?
What filters are executed in the end?
What are the Core features of ASP.NET MVC?
what is client wins and store wins mode in entity framework concurrency?
How can I tell what .net framework is installed?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What are the new enhancements done in default project template of asp.net mvc 4?
What are the 3 main components of an asp.net mvc application?
differences between poco, model first and data first approach?
Where are the routing rules defined in an asp.net mvc application?
what do you mean by navigation property?
Is dapper faster than entity framework?
What is Area in ASP.Net MVC?
mention what are the various methods provided by the dataset object to generate xml?
what is csdl?