I'm somewhat new to TBB and as a floating question in my head I've been thinking about parallel patterns and how they map to TBB patterns. Some are easeier than others for instance:
Divide & Conquer maps well to parallel_for/while
Pipes - pipeline/filters
so for languages like Erlang, and packages like MPI, message passing is the basis of the parallel architecture which implies that there is a message pump between the "threads"
SO my question:
For patterns like message-passing, Layers, and especially master-worker (common for me), what best TBB tool can I use easily? Should I be looking at anyting in particular? I never really understood "task" classes - is there a way I can spawn a task that waits for commands like a worker? I could easily implement message pumps no problem, but how would I implement the worker/master threads heterogeneously. Thanks a bunch for any help or direction!