X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2bc1e4a2e624d5d75d7ecc6f068da889e21076fe..8db088a5bcd9f5837c15c30e7de227cb78b04e9d:/examples/gras/synchro/philosopher.c diff --git a/examples/gras/synchro/philosopher.c b/examples/gras/synchro/philosopher.c index 86246962bb..755902793b 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"); + INFO2("Spawn the %d threads (%d lunches scheduled)", philosopher_amount, lunch_amount); /* spawn threads */ - for (i=0; i