public delegate void AsyncDoSomething();
void DoSomething()
{
System.Threading.Thread.Sleep(50);
}
void DoSomething1(object s)
{
System.Threading.Thread.Sleep(50);
}
void Main()
{
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
sw.Start();
for(int i =0;i<50;i++)
{
AsyncDoSomething caller = new AsyncDoSomething(DoSomething);
IAsyncResult result = caller.BeginInvoke(null, null);
}
sw.Stop();
Console.WriteLine(sw.Elapsed);
sw.Reset();
sw.Start();
for(int i =0;i<50;i++)