Summary

We have successfully created a fairly extensive multi-threaded service. At this point you might not see its value because we only have one worker thread. However, the abilities we have included in this version can be easily extended in upcoming chapters, where we will use more than just one worker thread. Controlling thread states is of key importance to services for stability and usability.

  • Threads are a way to allow applications to perform multiple actions in a concurrent manner.

  • Microsoft Visual Basic 2008 supports threads natively with the System.Threading class.

  • Microsoft Visual Basic 2008 makes the creation of threads simple, but you must also be careful when using this powerful programming technique.

  • Use caution when creating threads. ...

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.