Chapter 2. Expanding Your Service with Threads
In this chapter: |
In the previous chapter we created a simple project using the Microsoft Visual Basic Wizard and templates for Windows Services. Although we were able to install and run the service, it was not very useful—except for demonstration purposes.
You may remember that I said we wanted to avoid doing a large amount of work in the <OnStart> method. But if we aren’t going to do the work there, where do we do it? This is where threads come in. Threads are like mini-processes within the service. Threads allow you to perform ...
Get Programming Windows® Services with Microsoft® Visual Basic® 2008 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.