Actor-based Programming in C++: Control Flow Versus Data Flow

Rick Molloy is back and he's got some code and coding techniques to share. This tutorial/example is done in C++, but the concepts span languages (actor-based, data flow style of programming)Here, Rick explores converting a simple loop to a set of actors or agents that communicate via message passing. In particular he looks at the […]

Rick Molloy is back and he's got some code and coding techniques to share. This tutorial/example is done in C++, but the concepts span languages (actor-based, data flow style of programming)

Here, Rick explores converting a simple loop to a set of actors or agents that communicate via message passing. In particular he looks at the difference between a "control flow" style implementation and a "data flow" style implementation. The actor based approach is great because it separates the guts of the work from the loop logic so code looks more like the flow charts we draw on our whiteboards.

Download the code for this demo (will work in VC++ 2010)

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.