Skip to Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Threads Synchronization

So far, you have learned how to create and run new threads of execution to split big operations across multiple threads. This is useful, but there is a problem: Imagine that you have multiple threads accessing the same data source simultaneously: What happens to the data source, and how are threads handled to avoid errors? This is a problem that is solved with thread synchronization. The idea is that, when a thread accesses a resource, this resource is locked until the required operations are completed to prevent other threads from accessing that resource. Visual Basic and the .NET Framework provide keywords and objects, respectively, to accomplish threads synchronization, as covered in the next subsections.

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.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book