Click here to Skip to main content
15,913,587 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to code MultiThreading into 4 Processors in vb.net? Pin
Dave Kreskowiak7-Oct-09 5:13
mveDave Kreskowiak7-Oct-09 5:13 
GeneralRe: How to code MultiThreading into 4 Processors in vb.net? Pin
N a v a n e e t h7-Oct-09 5:49
N a v a n e e t h7-Oct-09 5:49 
AnswerRe: How to code MultiThreading into 4 Processors in vb.net? Pin
Luc Pattyn7-Oct-09 6:46
sitebuilderLuc Pattyn7-Oct-09 6:46 
AnswerRe: How to code MultiThreading into 4 Processors in vb.net? Pin
Shameel19-Oct-09 0:20
professionalShameel19-Oct-09 0:20 
QuestionGarbage Collection Pin
KSR816-Oct-09 12:57
KSR816-Oct-09 12:57 
AnswerRe: Garbage Collection Pin
raghu.g6-Oct-09 17:56
raghu.g6-Oct-09 17:56 
AnswerRe: Garbage Collection Pin
N a v a n e e t h6-Oct-09 18:03
N a v a n e e t h6-Oct-09 18:03 
AnswerRe: Garbage Collection Pin
supercat97-Oct-09 7:44
supercat97-Oct-09 7:44 
In a simple garbage-collection system, memory is allocated from a pool. The pool always has one contiguous chunk of free memory. Each time a new object is created, the system carves off a suitable-sized piece of memory from the bottom of the free chunk. Even if some previously-allocated objects are no longer needed, and their memory could be reused, the system will carve space from bottom the free chunk until there's insufficient space left there to satisfy a request.

When that happens, the system trigger what's called a "garbage collection" cycle, which will check each previously-allocated object in order to see whether it's still used. The first object which is still in use will be moved to the bottom of the pool. The next object which is still in use will be moved immediately after it. Once all the objects have been moved, any space above the last object may be considered part of the free memory pool, from which pieces may again be carved.

Some early garbage-collection systems (like the one used in 1980's Microsoft BASIC) were horribly slow to determine which memory areas were still in use. Later systems have become much better in that regard. Nonetheless, every time a garbage collection takes place, it will generally be necessary to copy every single byte of data which still in use to a new address. This may take a considerable amount of time.

The .net garbage collection system improves upon basic garbage collection by splitting the memory pool into three parts. New allocations are made from the first part. When the first part fills up, rather than copy still-in-use items to the start of the first part, they are added to the end of the second part and the first part is then erased. When the second part fills up, still-in-use items there are copied to the end of the third part and the second part is erased. If the third part fills up, still-in-use items there will be copied to the start of the third part. Since many allocated objects are only used for a very short time, the second part of the memory pool will fill up more more slowly than the first part, and the third part will fill up even more slowly. The net effect of this is that the system's garbage collection efforts will mostly be directed toward cleaning objects which aren't in use, rather than those which are. Since the former type of operation is faster and more useful, this improves performance.
GeneralRe: Garbage Collection Pin
KSR817-Oct-09 11:15
KSR817-Oct-09 11:15 
QuestionNCoverExplorer Report & MSBuild Pin
Jammer6-Oct-09 10:48
Jammer6-Oct-09 10:48 
AnswerRe: NCoverExplorer Report & MSBuild [modified] Pin
Ergwun9-Jun-10 21:18
Ergwun9-Jun-10 21:18 
QuestionMemory leak in VB.NET screenshot application Pin
Jordan19826-Oct-09 4:10
Jordan19826-Oct-09 4:10 
AnswerRe: Memory leak in VB.NET screenshot application Pin
Dave Kreskowiak6-Oct-09 4:39
mveDave Kreskowiak6-Oct-09 4:39 
GeneralRe: Memory leak in VB.NET screenshot application Pin
Jordan19826-Oct-09 5:00
Jordan19826-Oct-09 5:00 
AnswerRe: Memory leak in VB.NET screenshot application Pin
Luc Pattyn6-Oct-09 5:39
sitebuilderLuc Pattyn6-Oct-09 5:39 
Questioncopy functionality does not work in CrystalReportViewer Pin
maryam.saboor6-Oct-09 1:02
professionalmaryam.saboor6-Oct-09 1:02 
QuestionBroken Clipping Region Pin
RichardM15-Oct-09 15:26
RichardM15-Oct-09 15:26 
QuestionCustom file format - how to let Windows recognize properties like labels? Pin
pimb24-Oct-09 8:45
pimb24-Oct-09 8:45 
AnswerRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan5-Oct-09 1:01
mveRichard MacCutchan5-Oct-09 1:01 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
pimb25-Oct-09 5:17
pimb25-Oct-09 5:17 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan5-Oct-09 6:25
mveRichard MacCutchan5-Oct-09 6:25 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
pimb25-Oct-09 6:30
pimb25-Oct-09 6:30 
AnswerRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan5-Oct-09 7:22
mveRichard MacCutchan5-Oct-09 7:22 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
Richard MacCutchan7-Oct-09 0:49
mveRichard MacCutchan7-Oct-09 0:49 
GeneralRe: Custom file format - how to let Windows recognize properties like labels? Pin
pimb214-Oct-09 2:52
pimb214-Oct-09 2:52 

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.