Generation in Garbage Collector

Posted by Naimishforu under Others on 3/7/2011 | Points: 10 | Views : 3567 | Status : [Member] [MVP] | Replies : 14
Hi,

Can someone please provide some nice information on Generation in Garbage Collector??

I have already Google but couldn't found anything better.

Please provide some nice links, blogs, articles, your own answers in details.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/



Responses

Posted by: T.saravanan on: 3/7/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down

Posted by: Karthikanbarasan on: 3/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

See this excellent article by Shivprasad Koirala... you will get the clear idea

http://www.dotnetfunda.com/articles/article524-net-best-practice-no-2-improve-garbage-collector-performance-using-fina-.aspx

Thanks
Karthik
www.f5Debug.net

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 3/7/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Try this link too

http://www.dotnetspider.com/resources/1149-Understanding-Garbage-Collection-C.aspx

Thanks and Regards
Madhu

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 3/7/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Madhu,

Thanks for your link.

But I'm looking for Generation in Garbage Collector in more details.


Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mesh_2010 on: 3/10/2011 [Member] Starter | Points: 25

Up
0
Down

hi,

Try this link for explain with example

http://www.codeproject.com/KB/dotnet/gcbyleslie.aspx

Thanks
RameSH sinGH

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 3/10/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Thanks, the article looks written 2003 but still nice.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Eshwargee on: 3/10/2011 [Member] Starter | Points: 25

Up
0
Down
Quite simple :

Generation 0 - When an object is initialized, its in generation 0. These are new objects that have never been played around with by the GC. As and when more objects get created, the process of Garbage Collection is invoked by the CLR.

Generation 1 - The objects that survive the garbage collection process are considered to be in generation 1. These are the old objects.

Generation 2 - As more new objects get created and added to the memory, the new objects are added to generation 0, the generation 1 old objects become older, and so are considered to be in generation 2. Generation 2 is the highest level generation in the garbage collection process. Any further garbage collection process occurring causes the level 1 objects promoted to level 2, and the level 2 objects stay in level 2 itself, as this generation level is the highest level.



Eshwar,

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 3/10/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Thanks.....nice explanation :)

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 3/11/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Naimish,

If you got solution means just mark as the answer for your post.Its really helpful to others.

Thanks,
T.Saravanan

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Eshwargee on: 3/11/2011 [Member] Starter | Points: 25

Up
0
Down
Naimesh,
Thanks for yr feedback on my answer

Eshwar,

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 3/11/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi T.Saravanan, I'm just going through all the articles of which link has been provided by the members.

Once I fill I got the answer, I will mark it as answer.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: T.saravanan on: 3/11/2011 [Member] [MVP] Silver | Points: 25

Up
0
Down
Ok, What will you expecting from the members?
Actually you were agreed @Mesh_2010 & @Eshwargee both members answer then only i suggest to you.

Thanks,
T.Saravanan

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 3/11/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

Please don't get it wrong.

I meant I'm looking at the link provided by others as well as you.

I will Mark As Answer once I get my idea clear.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vforvijay on: 3/12/2011 [Member] Starter | Points: 25

Up
0
Down
Garbage collectre is nothing but its remove unwanted object form the project,Every time it checks and remove the unused object,it makes free the memory to run the project....

Naimishforu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response