Starting and Stopping concurrent threads through Windows Service
I am new to .NET environment. I need a windows service whose Start and Stop method will call a specific class, say MainContext's Start and Stop method respectively. The MainContext class will contain the list of extensions loaded through [MEF][1]. Each extensions needs to be run as a separate thread in concurrent manner.

The class MainContext will contain two public methods Start and Stop, both of return type void and containing no arguments. On calling Start method, it will start the thread for each extensions loaded through MEF in an concurrent manner. While the Stop method will stop all the threads started by Start method.

Which is the best threading practice in this situation? I am confused. Should I use System.Threading.Tasks.Task class or System.Threading.Thread class for multi-threading or should I use any other technique? Which would be better suited to my requirements and would provide me more flexibility and stability?

  [1]: http://mef.codeplex.com/
Starting and Stopping concurrent threads through Windows Service
===

I am new to .NET environment. I need a windows service whose Start and Stop method will call a specific class, say MainContext's Start and Stop method respectively. The MainContext class will contain the list of extensions loaded through [MEF][1]. Each extensions needs to be run as a separate thread in concurrent manner.

The class MainContext will contain two public methods Start and Stop, both of return type void and containing no arguments. On calling Start method, it will start the thread for each extensions loaded through MEF in an concurrent manner. While the Stop method will stop all the threads started by Start method.

Which is the best threading practice in this situation? I am confused. Should I use System.Threading.Tasks.Task class or System.Threading.Thread class for multi-threading or should I use any other technique? Which would be better suited to my requirements and would provide me more flexibility and stability?

  [1]: http://mef.codeplex.com/