@@ -5,13 +5,13 @@ If you cannot find a solution here, please post an issue [here][Github issues].
55
66## General Questions
77
8- ### Q: How many tasks can Cpp-Taskflow handle?
8+ #### Q: How many tasks can Cpp-Taskflow handle?
99
1010** A:** Cpp-Taskflow is a very lightweight and efficient tasking library.
1111It has been applied in many academic and industry projects to scale up their existing workload.
1212A research project [ OpenTimer] [ OpenTimer ] has used Cpp-Taskflow to deal with hundreds of millions of tasks.
1313
14- ### Q: What are the differences between Cpp-Taskflow and other tasking libraries?
14+ #### Q: What are the differences between Cpp-Taskflow and other tasking libraries?
1515
1616** A:** From our humble opinion, Cpp-Taskflow is superior in its tasking API, interface, and performance.
1717In most cases, users can quickly master Cpp-Taskflow to create large and complex dependency graphs
@@ -21,12 +21,12 @@ Of course, the judge is always left for users -:)
2121
2222## Compile Issues
2323
24- ### Q: I can't get Cpp-Taskflow compiled in my project!
24+ #### Q: I can't get Cpp-Taskflow compiled in my project!
2525
2626** A:** Please make sure your compile supports the latest version of C++17.
2727Make sure your project meets the System Requirements described at [ README] [ README ] .
2828
29- ### Q: Clang can't compile due to the use of std::variant.
29+ #### Q: Clang can't compile due to the use of std::variant.
3030
3131** A:** Cpp-Taskflow uses ` std::variant ` to enable uniform interface between static and dynamic tasking.
3232However it has been reported in
@@ -47,7 +47,7 @@ For clang users, you will need to use this patch in `taskflow.hpp` as follows:
4747
4848## Programming Questions
4949
50- ### Q: What is the difference between Cpp-Taskflow threads and workers?
50+ #### Q: What is the difference between Cpp-Taskflow threads and workers?
5151
5252** A:** The master thread owns the thread pool and can spawn workers to run tasks
5353or shutdown the pool.
@@ -60,7 +60,11 @@ tf::Taskflow(N); // N workers, N+1 threads in the program.
6060
6161If there is no worker threads in the pool, the master thread will do all the works by itself.
6262
63- ### Q: My program hangs and never returns after dispatching a taskflow graph.
63+ #### Q: Is taskflow thread-safe?
64+ **A:** No, the taskflow object is not thread-safe. You can't create tasks from multiple threads
65+ at the same time.
66+
67+ #### Q: My program hangs and never returns after dispatching a taskflow graph. What's wrong?
6468
6569**A:** When the program hangs forever it is very likely your taskflow graph has a cycle.
6670Try the `dump` method to debug the graph before dispatching your taskflow graph.
0 commit comments