Often blocking and checking is combined with some sort of timeout. SpinUntil, a static method on the SpinWait structure, combines blocking, waiting, and timeouts. New in the .NET Framework 4.0, SpinUntil simplifies many different scenarios involving the Task Parallel Library (TPL). Jeffery Juday shares some common recipes employing SpinUntil alongside TPL.
Latest Columns Articles - Page 17
A substantial number of Task Parallel Library (TPL) Concurrent collections implement IProducerConsumerCollection. Jeffrey Juday explains the scenarios and mechanisms around implementing IProducerConsumerCollections.
Learn how to build Task Parallel Library Continuation with multiple Antecedents.
Developers typically choose a Timer to have an application perform a concurrent background process after some elapsed interval. Wouldn't it be nice to couple results and Timer control in a single class? Task Parallel Library (TPL) includes a class called TaskCompletionSource that enables this scenario.
Much of the .NET Task Parallel Library (TPL) Data Parallel functionality is encapsulated in Parallel Loops. Unlike a regular loop, Parallel loops must partition a collection, requiring a developer to address concurrency issues like cancellation and thread safe operations. This article introduces the TPL Data Parallel core classes and concepts.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
The Transactional File System (TxF), which allows access to an NTFS file system to be conducted in a transacted manner through extensions to the Windows SDK API. MFC 10, has been extended to support TxF and related technologies. This support allows existing MFC applications to be easily extended to support kernel transactions.
String.format is not just a relic from a bygone era, but is actually still very useful even in today's brave new world. It’s time to dig into some data formatting!
Hannes du Preez explains what delegates are and how to use them to call managed and unmanaged code in VB.NET.
This article introduces you to Big Data, Apache Hadoop and MapReduce jobs. We will also learn how to create MapReduce jobs using C#.