Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
GeneralRe: Threads in Windows service Pin
RoyceF1-May-08 11:40
RoyceF1-May-08 11:40 
QuestionWindows Mobile 5 - moving selected form items up when osk activated Pin
Spacedmc1-May-08 7:57
Spacedmc1-May-08 7:57 
AnswerRe: Windows Mobile 5 - moving selected form items up when osk activated Pin
Arjun Marwaha1-May-08 11:30
Arjun Marwaha1-May-08 11:30 
Questionimport/Export Xml into a hastable Pin
Member 40084921-May-08 6:18
Member 40084921-May-08 6:18 
AnswerRe: import/Export Xml into a hastable Pin
Gareth H1-May-08 7:55
Gareth H1-May-08 7:55 
AnswerRe: import/Export Xml into a hastable Pin
Anthony Mushrow1-May-08 8:12
professionalAnthony Mushrow1-May-08 8:12 
Questionyield return Pin
George_George1-May-08 4:23
George_George1-May-08 4:23 
AnswerRe: yield return Pin
led mike1-May-08 4:41
led mike1-May-08 4:41 
GeneralRe: yield return Pin
George_George1-May-08 4:45
George_George1-May-08 4:45 
GeneralRe: yield return Pin
User 66581-May-08 6:32
User 66581-May-08 6:32 
GeneralRe: yield return Pin
George_George1-May-08 21:58
George_George1-May-08 21:58 
GeneralRe: yield return Pin
Simon P Stevens1-May-08 9:42
Simon P Stevens1-May-08 9:42 
GeneralRe: yield return Pin
George_George1-May-08 21:57
George_George1-May-08 21:57 
GeneralRe: yield return Pin
Simon P Stevens2-May-08 9:33
Simon P Stevens2-May-08 9:33 
GeneralRe: yield return Pin
George_George2-May-08 21:24
George_George2-May-08 21:24 
Question1-Wire iButtons [modified] Pin
MarkB7771-May-08 3:32
MarkB7771-May-08 3:32 
QuestionFinalization and Performance Pin
George_George1-May-08 3:20
George_George1-May-08 3:20 
AnswerRe: Finalization and Performance Pin
Christian Graus1-May-08 3:34
protectorChristian Graus1-May-08 3:34 
GeneralRe: Finalization and Performance Pin
George_George1-May-08 3:47
George_George1-May-08 3:47 
GeneralRe: Finalization and Performance Pin
Christian Graus1-May-08 3:56
protectorChristian Graus1-May-08 3:56 
GeneralRe: Finalization and Performance Pin
George_George1-May-08 4:10
George_George1-May-08 4:10 
GeneralRe: Finalization and Performance Pin
N a v a n e e t h1-May-08 6:07
N a v a n e e t h1-May-08 6:07 
George_George wrote:
You mean in GC, if gen2 collection is decided to run, then gen2 collection has to wait for gen1 collection complete, and gen1 has to wait for gen0 collection complete?


Objects that are just allocated will be on gen0. Objects survived one cycle of GC will be in gen1 and all other will be in gen2. When GC collects memory, it initially collects gen0, if enough memory is not claimed it will go to gen1 and then to gen2.

All objects considered as garbage and don't have finalizers will be removed immediately. If finalizer is available, then it won't be removed immediately. GC will flag it and start calling it's finalize method in another thread. So it will be reclaimed in next cycle. This is why classes which have finalizers are performance costly.

George_George wrote:
GC could only decide to run gen0 only, or gen1 + gen0, right?


I am not getting your point here. Can you explain it ?

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: Finalization and Performance Pin
George_George1-May-08 21:19
George_George1-May-08 21:19 
GeneralRe: Finalization and Performance Pin
N a v a n e e t h1-May-08 22:59
N a v a n e e t h1-May-08 22:59 
GeneralRe: Finalization and Performance Pin
George_George2-May-08 2:43
George_George2-May-08 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.