Garbage Collection in .Net

When we say that GC works on "heap" memory then how "stack" memory gets freed or deallocated? Can someone tell me the algorithm used by GC to free the memory?

Questions by sushil_gupta   answers by sushil_gupta

Showing Answers 1 - 6 of 6 Answers

siva

  • Jan 6th, 2012
 

.Net Frameworks -Memory Management Garbage Collector which manages allocation and release of memory from application.Now developers no need to worry about memory allocated for each object which is created on application . garbage collector automatically manages memory on application

I would like share this horrible experience which I faced in one of the big IT multinational company. Even though I have 8 years of experience, I flunked very badly and I flunked due to 1 topic "Garbage collector". I hope the below discussion will help some one down the line when facing c sharp and dot net interviews. I just hope dot net interviews get more matured down the line and ask practical questions rather than asking questions which we do not use on day to day to basis.

The interviewer started with a basic question which I knew pretty well

  Was this answer useful?  Yes

Smith

  • Jan 22nd, 2012
 

Garbage collection removes the objects from heap after certain time.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions