Recommended Task Recurrence Patterns

This section catalogues three recommended task recurrence patterns. In each pattern, the class T is assumed to be derived from the class task. Subtasks are labeled t1, t2, … tk. The subscripts indicate the order in which the subtasks execute if no parallelism is available. If parallelism is available, the subtask execution order is nondeterministic, except that t1 is guaranteed to be executed by the spawning thread.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.