summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
094f803)
The execution order changed a very little bit as host_get_speed is not
a simcall anymore, and the process got the opportunity to start a new
task (and do the corresponding output) before being killed at the same
timestamp. But it actually dies at that timestamp, everything alright.
int commTX(int argc, char *argv[]);
xbt_dynar_t tests;
int commTX(int argc, char *argv[]);
xbt_dynar_t tests;
int test_launcher(int argc, char *argv[])
{
int test_launcher(int argc, char *argv[])
{
XBT_INFO(" Turn off Jupiter");
MSG_host_off(jupiter);
MSG_process_sleep(10);
XBT_INFO(" Turn off Jupiter");
MSG_host_off(jupiter);
MSG_process_sleep(10);
- XBT_INFO("Test 1 seems ok, cool !(number of Process : %d, it should be 1 (i.e. the Test one))", MSG_process_get_number());
+ XBT_INFO("Test 1 seems ok, cool !(#Processes: %d, it should be 1; #tasks: %d)", MSG_process_get_number(), tasks_done);
-// adsein: Is this really a daemon ? it ran only one task ? I just added a stupid loop
int process_daemon(int argc, char *argv[])
{
msg_task_t task = NULL;
int process_daemon(int argc, char *argv[])
{
msg_task_t task = NULL;
XBT_INFO(" Execute daemon");
MSG_task_execute(task);
MSG_task_destroy(task);
XBT_INFO(" Execute daemon");
MSG_task_execute(task);
MSG_task_destroy(task);
}
XBT_INFO(" daemon done. See you!");
return 0;
}
XBT_INFO(" daemon done. See you!");
return 0;
> [Jupiter:process_daemon:(2) 1.000000] [msg_test/INFO] Execute daemon
> [Jupiter:process_daemon:(2) 2.000000] [msg_test/INFO] Execute daemon
> [Tremblay:test_launcher:(1) 3.000000] [msg_test/INFO] Turn off Jupiter
> [Jupiter:process_daemon:(2) 1.000000] [msg_test/INFO] Execute daemon
> [Jupiter:process_daemon:(2) 2.000000] [msg_test/INFO] Execute daemon
> [Tremblay:test_launcher:(1) 3.000000] [msg_test/INFO] Turn off Jupiter
-> [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test 1 seems ok, cool !(number of Process : 1, it should be 1 (i.e. the Test one))
+> [Jupiter:process_daemon:(2) 3.000000] [msg_test/INFO] Execute daemon
+> [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test 1 seems ok, cool !(#Processes: 1, it should be 1; #tasks: 3)
> [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test done. See you!
> [13.000000] [msg_test/INFO] Simulation time 13
> [Tremblay:test_launcher:(1) 13.000000] [msg_test/INFO] Test done. See you!
> [13.000000] [msg_test/INFO] Simulation time 13