Concurrent Collections
Parallel computing relies on multithreading, although with some particular specifications for taking advantage of multicore architectures. The real problem is when you need to work with collections because in a multithreaded environment, multiple threads could access a collection attempting to make edits that need to be controlled. The .NET Framework 4.6 retakes from its predecessor a number of thread-safe concurrent collections, exposed by the System.Collections.Concurrent
namespace, which is useful in parallel computing with .NET Framework because they grant concurrent access to their members from threads.
What Does Thread-Safe Mean?
A collection is thread-safe when it remains correct despite any number of threads invoking ...
Get Visual Basic 2015 Unleashed 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.