X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2bc1e4a2e624d5d75d7ecc6f068da889e21076fe..fa687c95eb57ae7dbfd7920c64890cab395d0fd9:/examples/gras/synchro/philosopher.c diff --git a/examples/gras/synchro/philosopher.c b/examples/gras/synchro/philosopher.c index 86246962bb..cc5db31e35 100644 --- a/examples/gras/synchro/philosopher.c +++ b/examples/gras/synchro/philosopher.c @@ -94,9 +94,6 @@ int philosopher (int argc,char *argv[]) { gras_init(&argc,argv); xbt_assert0(argc>=2,"This program expects one argument (the amount of philosophers)"); - INFO0("Wait 1 sec to check that gras_os_sleep do works"); - gras_os_sleep(1); - /* initializations of the philosopher mecanisms */ philosopher_amount = atoi(argv[1]); state = xbt_new0(int,philosopher_amount); @@ -118,10 +115,13 @@ int philosopher (int argc,char *argv[]) { dead_end = xbt_mutex_init(); xbt_mutex_lock(dead_end); - INFO0("Enough waiting, spawn the threads"); + INFO0("Spawn the threads"); /* spawn threads */ - for (i=0; i