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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access