Creating a .NET Windows Service
|Visual C# Tutorials|
|.NET Framework Tutorials|
Create .NET Windows Service
|© 2005 Pearson Education, Inc.|
Creating a .NET Windows Service: Three Different Approaches
The article details three different approaches to creating a .NET service. Most common is the timer-based service, which simply relies on a timer to invoke the background thread periodically. I also cover two other alternatives: using a single worker thread and using multiple worker threads. While the timer strategy is the simplest, the approaches using a single worker thread and multiple worker threads (specifically the multithreaded approach) offer some advantages.