Intel(R) oneAPI Threading Building Blocks (oneTBB) Documentation
Flow Graph Tips for Limiting Resource Consumption
You may want to control the number of messages allowed to enter parts of
your graph, or control the maximum number of tasks in the work pool.
There are several mechanisms available for limiting resource consumption
in a flow graph.