Wanted to share demo project that I created to prototype using the features of the C# 4.0 parallel thread task jobs for an app that I'm working on. ( note - rename .zip_ to .zip )
Decided to go with the C# 4.0 task approach as it's all baked in-parallel thread handeling, but also have looked at the async CPT as well ( dll is included and referenced in project - but not used ) - and will certainly look more at the CTP as time allows.
The simple objective of the code was to be able to dynamically ( based on an INI setting for number of threads to be used ) initialize a class that does some self-contained "work" - and make sure that I get that class back so I can report on what it did work-wise. I left in all the iterations of the testing method so everyone can see how I came to my final code ( and so I could remember if I needed to go back and look <g> ).
As I'm never satisfied, and coding is the eternal evolutionary process - if others have different approaches using Tasks or the Async CTP, etc - I would always love further enhancements or better approaches overall.
And - ANYONE should feel comfortable with posting code / ideas to this list - we're here to support each other. :)
Regards...
...Lance Larsen - MADdotNET President |
www.maddotnet.com
www.lancelarsen.com | 608.31LANCE |
ma...@lancelarsen.com