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 the tools used for unit testing in ASP.Net MVC
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
Explain the types of Scaffoldings.
what is entity framework advantage?
What is edm designer? : Entity framework
Which filter executes first in an asp.net mvc application?
Why should we go for entity framework?
what is ssdl?
What are the two ways to add constraints to a route?
Explain dependency resolution?
what is complex type?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
How can we determine action invoked from HTTP GET or HTTP POST?
differences between poco, model first and data first approach?
Can you explain renderbody and renderpage in mvc?