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
What are the levels at which filters can be applied in an asp.net mvc application?
Can you explain the page life cycle of mvc?
Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?
Is .net framework dead?
What is the version number for the next version of the .net framework, codenamed �orcas�?
What is net framework 3.0 ?
Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?
What is an asynchronous controller in asp.net mvc?
What are scaffold templates in mvc?
What is definingquery in entity framework? : Entity framework
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
What is web api‘s in asp.net mvc 4 ?
What is the difference between model and entity?
what is linq to entities?
What is the use of razor view engine?