Pro TBB by Michael Voss & Rafael Asenjo & James Reinders

Pro TBB by Michael Voss & Rafael Asenjo & James Reinders

Author:Michael Voss & Rafael Asenjo & James Reinders
Language: eng
Format: epub
ISBN: 9781484243985
Publisher: Apress


Note

Continuation, continuation, continuation!!! The authors of TBB, and other parallelism experts, love to encourage continuation style programming. Why??? It turns out that using it can be the difference between a working program that is relatively easy to write, and one that crashes from stack overflow. Worst yet, other than using continuations, code to solve such crashes can be hard to understand and gives parallel programming a bad name. Fortunately, TBB is designed to use continuations and encourages us to use continuations by default. Flow Graph (Chapters 3 and 17) encourages use of continue_node (and other nodes with potentials for scheduler bypass). The power of continuations (and task recycling, which we cover next) is worth knowing as a parallel programmer – you’ll never want to let a task sit around waiting again (and wasting precious resources)!



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.