With processors set to scale at the CPU level instead of the Mhz level, wouldn't it be great if you could write some code like: StringBuilder output = new StringBuilder(); foreach (MyObj o in collection)
{ string val; async { val = doSomethingHard(o); } sync { output.Append(val); }
} and have the...
Posted to
Jesse Ezell Blog
(Weblog)
by
Jesse Ezell
on
08-05-2006, 12:00 AM
Filed under: General Software Development, .NET, C#, Asyncronous Programming, Threading, Generics, Anonymous Methods