X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78c5c8810d149086107852e20a2716689db2bfe8..895710d49f77179d9893bc76b3e31b69fae638af:/doc/doxygen/FAQ.doc diff --git a/doc/doxygen/FAQ.doc b/doc/doxygen/FAQ.doc index f6d96b554f..15a35ec156 100644 --- a/doc/doxygen/FAQ.doc +++ b/doc/doxygen/FAQ.doc @@ -1,7 +1,9 @@ -/*! \page FAQ Frequently Asked Questions +/*! \page FAQ MSG Frequently Asked Questions @tableofcontents +This document is the FAQ of the MSG interface. Some entries are a bit aging and it should be refreshed at some point. + \section faq_simgrid I'm new to SimGrid. I have some questions. Where should I start? You are at the right place... To understand what you can do or @@ -12,7 +14,7 @@ material on the blog of Martin Quinson. -Another great source of inspiration can be found in the \ref msg_examples. +Another great source of inspiration can be found in the \ref s4u_examples. If you are stuck at any point and if this FAQ cannot help you, please drop us a mail to the user mailing list: . @@ -134,15 +136,6 @@ and MSG_task_get_data(). You could use a dictionary (#xbt_dict_t) of dynars (#xbt_dynar_t). If you still don't see how to do it, please come back to us... -\subsubsection faq_MIA_asynchronous I want to do asynchronous communications in MSG - -You are probably looking for the following functions: -MSG_task_isend() and MSG_task_irecv(); -MSG_comm_test(), MSG_comm_wait(), MSG_comm_waitall() and MSG_comm_waitany(); -MSG_comm_destroy(). - -There is even a specific example section on \ref msg_ex_asynchronous_communications. - \subsubsection faq_MIA_thread_synchronization How to synchronize my user processes? It depends on why you want to synchronize them. If you just want to @@ -273,8 +266,8 @@ create 3 SD_tasks: t1, t2 and c and add dependencies in the following way: \code -SD_task_dependency_add(NULL, NULL, t1, c); -SD_task_dependency_add(NULL, NULL, c, t2); +SD_task_dependency_add(t1, c); +SD_task_dependency_add(c, t2); \endcode This way task t2 cannot start before the termination of communication c