Once an agent has finished processing a piece of incoming data, it can then pass the result to an outgoing memory buffer where it may be processed in a different way by a different agent.Īgents communicate with each other entirely through the memory buffers that they are operating on, and use Agent Library-provided functions for dealing with these buffers. In contrast, the Asynchronous Agents Library (also referred to by the shorthand name of the “Agents Library”) adopts a more formal approach to achieving parallelism by dividing processing tasks into discrete “agents” that each have a single, well-defined task and operate on a dedicated memory buffer. The PPL supports parallel task execution by automatically moving discrete processing tasks out onto separate threads based on the processing resources that are available at runtime, and achieves synchronization by traditional methods like data locks and events. Previous articles in this series covered the parallel programming library (PPL) and the state management functionality that supports PPL. The Asynchronous Agents Library is the final block of parallel-programming functionality that will ship in Visual C++ 2010.
0 Comments
Leave a Reply. |