O'Reilly logo

Programming Windows® Services with Microsoft® Visual Basic® 2008 by Michael Gernaey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Advanced Processing

We have added threads, processing, and other features to the service. However, although a synchronous process may suffice, what if we had multiple directories with incoming files, or what if we want to speed up the processing? If we had a larger number of files in the incoming folder, with possibly a larger amount of data in those files, we may want to make the service more efficient.

Before you go any Further, understand that the more threads and actions you add to your service, the more care you have to take. For example, if you have multiple actions happening that all use the same data, it’s very easy to corrupt the data on a separate thread from the one actively using that data.

You get around this issue by synchronizing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required