- /* Application deployment */
- MSG_function_register("emigrant", emigrant);
- MSG_function_register("master", master);
- MSG_launch_application(argv[2]);
-
- /* Run the simulation */
- res = MSG_main();
- XBT_INFO("Simulation time %g", MSG_get_clock());
- if (res == MSG_OK)
- res = MSG_clean();
+ MSG_process_create("emigrant", emigrant, NULL, MSG_get_host_by_name("Fafard"));
+ MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay"));