Project Description
ThreadManager contains C# class to manage thread effectively with the ThreadPool implementation.it can be used in any .NET application . It is released as just C# class as Version 1.0. I will upload Demo application soon. Its really easy to use and tested. Use it or loose it.

How to use the class

public Service()
{
InitializeComponent();
etm.ClalThreadPool("EmailThreads", (uint)ApplicationInfo.NoEmailParsingThreads);
}

//queue items in thread for processing wherever required. Second parameter is the parameter which you will get into the thread processing function.
etm.QueueUserEmailWorkItem(new WaitCallback(ELMService_UpdateLogHandler), objSupplier);

//in ThreadManager.cs class, you can write the code inplace of comments in WorkThread class in Loop function.

I will release demo soon for the ThreadManager.cs.

Manish
http://maniish.wordpress.com

Last edited Apr 7, 2009 at 6:12 PM by maniiish, version 4