- MSG_launch_application(application_file);
-
-#ifdef BENCH_THIS_CODE
- xbt_os_timer_start(timer);
-#endif
- MSG_error_t res = MSG_main();
-#ifdef BENCH_THIS_CODE
- xbt_os_timer_stop(timer);
-#endif
- XBT_CRITICAL("Simulated time: %g", MSG_get_clock());
+ for(int i = 0 ; i< 9; i++) {
+ char *hostname = bprintf("node-%d.acme.org", i);
+ char **argvF = xbt_new(char *, 3);
+ argvF[0] = xbt_strdup("node");
+ argvF[1] = bprintf("%d", i);
+ argvF[2] = NULL;
+ MSG_process_create_with_arguments("node", node, NULL, MSG_host_by_name(hostname), 2, argvF);
+ xbt_free(hostname);
+ }