Here is an implementation
Coding time: Implement your own Parallel.For in C#
I have applied this code into my code, it really works.
And there is the AForge.Net Framework project. The 2.0.0 beta also contains an implementation of Parallel.For
http://code.google.com/p/aforge/
I have also applied this into my code. It can gain 10% further improvement than the previous implementation.
Finally, there is the official Microsoft Parallel Extensions to .NET Framework 3.5, but I cannot comply it in Visual Studio 2005.
http://www.microsoft.com/downloads/details.aspx?FamilyId=348F73FD-593D-4B3C-B055-694C50D2B0F3&displaylang=en
The overall improvement is about 40% compared with the original single thread one.
No comments:
Post a Comment