]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix table of contents; add one more sentence.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Nov 2010 20:10:43 +0000 (20:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 29 Nov 2010 20:10:43 +0000 (20:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@22882 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/doxygen/headers/multithreading.h

index 3d65290de09e936ff2221de4ddac377338d6b484..04108a63e871447199adfbe127e8c580571df933 100644 (file)
@@ -57,7 +57,7 @@
  *  <li> @ref MTSimpleLoops "Abstractions for tasks: Simple loops"
  *  <li> @ref MTComplexLoops "Abstractions for tasks: More complex loops"
  *  <li> @ref MTWorkStream "Abstractions for tasks: Work streams"
- *  <li> @ref MTTasksSynchronization ""
+ *  <li> @ref MTTaskSynchronization "Tasks and synchronization"
  *  <li> @ref MTThreads "Thread-based parallelism"
  *  <li> @ref MTTaskThreads "Controlling the number of threads used for tasks"
  * </ol> </td> </tr> </table>
  * tutorial programs.
  *
  *
- * @anchor MTTasksSynchronization
+ * @anchor MTTaskSynchronization
  * <h3>Tasks and synchronization</h3>
  *
  * Tasks are powerful but they do have their limitation: to make
  * (a mutex) rather than task scheduler resources. The result is a
  * deadlock.
  *
- * The bottom line is that tasks can not use mutices or condition
- * variables to synchronize with other tasks. If synchronization is
- * necessary, you need to use threads because the operating system
- * makes sure that all threads eventually get to run, independent of
- * the total number of threads.
+ * The bottom line is that tasks can not use mutices or condition variables to
+ * synchronize with other tasks. If communication between tasks is necessary,
+ * you need to use threads because the operating system makes sure that all
+ * threads eventually get to run, independent of the total number of threads.
+ * Note however that the same is not true if you only use a Thread::Mutex on
+ * each task separately to protect access to a variable that the tasks may
+ * write to: this use of mutices is ok; tasks may simply not want to wait for
+ * another task to do something.
  *
  *
  * @anchor MTThreads

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.