Simplifying Overlapped I/O With PPL

Helped by the recent advances in modern languages (such as async/await in C#) and frameworks (such as Node.js), non-blocking programming has firmly entered the zeitgeist of the development community. On Windows, non-blocking I/O programming has traditionally been done using the overlapped I/O APIs. It’s essence is letting the thread do useful work while one or…

3

How to put a PPLTasks continuation chain into a loop

Background The way to express sequential logic in asynchronous programming with PPLTasks is task continuation chain; however, there is no easy way to construct a loop of continuations with tasks.  In many scenarios, an asynchronous loop can be useful; for example, suppose you want to download a file from a website asynchronously. A typical strategy…

3

PPL Asynchronous Sample Pack Updated

Visual Studio 11 Beta has been a great source of customer feedback for us on the PPL team. If you’re a PPL user, thanks for staying in touch! We welcome all constructive feedback and your input helps us build a product that’s relevant to you. A lot has happened with PPL since the last release…

3

Try It Now: Use PPL to Produce Windows 8 Asynchronous Operations

If you’ve seen any of the Windows Runtime talks from //build/ (like this one), one of the things you’ll discover is that asynchronous APIs are pervasive throughout it. Operations which can potentially be long running – particularly things like I/O – are often exposed solely through an asynchronous pattern. Because of this, it is, in…

4

Windows 8 Asynchrony with PPL

Living with Latency Our customers demand more speed and responsiveness from applications. At the same time, as the applications are becoming more and more connected, we are increasingly confronted with the latency inherent in I/O devices. A thread performing a blocking I/O operation effectively delegates control to the hardware device performing that operation. Depending on…

5