GC, Memory, and Multi-Threading in C#
GL to me, my 50th post and is the 1st technical post. if ur a senior programmer u might be bored and r welcomed to comment. lets start. i have something to do around, say, 60 times. (usually 5000 time, *10 sec is 14 hrs) linear, like for, takes say 60 * 10 sec = 10 mins. but if i multi thread it, say 10 at a time in a good cpu i can get to 20 sec or less for all 10 threads, so where done to 2 min (or almost 4 hrs) - cool! so in a basic way to do that would be that : http://bresleveloper.blogspot.co.il/2012/05/muti-threading-in-forforeach-example.html now u should thing hey - says who that after all these threads are finished all this CPU usage and memory gets free? msdn says so : " For the majority of the objects that your application creates, you can rely on the .NET Framework's garbage collector to implicitly perform all the necessary memory management tasks. However, when you create objects that encapsulate unmanaged resources, you must explicitly release the un...