You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Benchmarks showed Cpp-Taskflow can efficiently handle millions or billions of tasks (both large and small tasks) on a machine with up to 64 CPUs.</p>
113
120
<h2><aclass="anchor" id="GeneralQuestion5"></a>
114
121
Q5: What is the weird hex value, like 0x7fc39d402ab0, in the dumped graph?</h2>
115
-
<p>The hex value represents the memory address of the task. Each task has a method <aclass="el" href="classtf_1_1Task.html#a9057ecd0f3833b717480e914f8568f02" title="assigns a name to the task ">tf::Task::name(const std::string&)</a> for user to assign a human readable string to ease the debugging process. If a task is not assigned a name or is an internal node, its address value in the memory is used instead. </p><hr/>
122
+
<p>The hex value represents the memory address of the task. Each task has a method <aclass="el" href="classtf_1_1Task.html#a9057ecd0f3833b717480e914f8568f02" title="assigns a name to the task">tf::Task::name(const std::string&)</a> for user to assign a human readable string to ease the debugging process. If a task is not assigned a name or is an internal node, its address value in the memory is used instead.</p>
Q4: My program hangs and never returns after dispatching a taskflow graph. What's wrong?</h2>
130
-
<p>When the program hangs forever it is very likely your taskflow graph has a cycle. Try the <aclass="el" href="classtf_1_1BasicTaskflow.html#adac448e1cc44307856b3116d7ed5490f" title="dumps the present task dependency graph to a std::ostream in DOT format">tf::Taskflow::dump</a> method to debug the graph before dispatching your taskflow graph.</p>
138
+
<p>When the program hangs forever it is very likely your taskflow graph has a cycle. Try the <aclass="el" href="classtf_1_1BasicTaskflow.html#adac448e1cc44307856b3116d7ed5490f" title="dumps the present task dependency graph to a std::ostream in DOT format">tf::Taskflow::dump</a> method to debug the graph before dispatching your taskflow graph.</p>
<p>No. The subflow is spawned during the execution of B, and at this point A must finish because A precedes B. This gives rise to the fact B1 and B2 must run after A. This graph may looks strange because B seems to run twice! However, Cpp-Taskflow will schedule B only once to create its subflow. Whether this subflow joins or detaches from B only affects the future object returned from B. </p>
137
-
</div></div><!-- contents -->
145
+
</div></div><!-- PageDoc -->
146
+
</div><!-- contents -->
138
147
</div><!-- doc-content -->
139
148
<!-- start footer part -->
140
149
<divid="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<trid="row_0_0_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1BasicTaskflow.html" target="_self">BasicTaskflow</a></td><tdclass="desc">The base class to derive a taskflow class </td></tr>
102
109
<trid="row_0_1_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="structtf_1_1Error.html" target="_self">Error</a></td><tdclass="desc">The error category of taskflow </td></tr>
103
110
<trid="row_0_2_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1FlowBuilder.html" target="_self">FlowBuilder</a></td><tdclass="desc">The building blocks of task dependency graphs </td></tr>
104
-
<trid="row_0_3_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1ProactiveThreadpool.html" target="_self">ProactiveThreadpool</a></td><tdclass="desc">Executor that implements a centralized task queue with a proactive execution strategy </td></tr>
105
-
<trid="row_0_4_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1SimpleThreadpool.html" target="_self">SimpleThreadpool</a></td><tdclass="desc">Executor that implements a centralized task queue with a simple execution strategy </td></tr>
106
-
<trid="row_0_5_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1SpeculativeThreadpool.html" target="_self">SpeculativeThreadpool</a></td><tdclass="desc">Executor that implements a centralized task queue with a speculative execution strategy </td></tr>
107
-
<trid="row_0_6_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1SubflowBuilder.html" target="_self">SubflowBuilder</a></td><tdclass="desc">The building blocks of dynamic tasking </td></tr>
108
-
<trid="row_0_7_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1Task.html" target="_self">Task</a></td><tdclass="desc">Handle to modify and access a task </td></tr>
<trid="row_0_9_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1WorkStealingThreadpool.html" target="_self">WorkStealingThreadpool</a></td><tdclass="desc">Executor that implements an efficient work stealing algorithm </td></tr>
<trid="row_0_4_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1ProactiveThreadpool.html" target="_self">ProactiveThreadpool</a></td><tdclass="desc">Executor that implements a centralized task queue with a proactive execution strategy </td></tr>
113
+
<trid="row_0_5_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1SimpleThreadpool.html" target="_self">SimpleThreadpool</a></td><tdclass="desc">Executor that implements a centralized task queue with a simple execution strategy </td></tr>
114
+
<trid="row_0_6_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1SpeculativeThreadpool.html" target="_self">SpeculativeThreadpool</a></td><tdclass="desc">Executor that implements a centralized task queue with a speculative execution strategy </td></tr>
115
+
<trid="row_0_7_" class="even"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1SubflowBuilder.html" target="_self">SubflowBuilder</a></td><tdclass="desc">The building blocks of dynamic tasking </td></tr>
116
+
<trid="row_0_8_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1Task.html" target="_self">Task</a></td><tdclass="desc">Handle to modify and access a task </td></tr>
<trid="row_0_10_"><tdclass="entry"><spanstyle="width:32px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el" href="classtf_1_1WorkStealingThreadpool.html" target="_self">WorkStealingThreadpool</a></td><tdclass="desc">Executor that implements an efficient work stealing algorithm </td></tr>
0 commit comments