Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce waiting times to speed up tests
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 13 Jul 2007 09:47:16 +0000 (09:47 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 13 Jul 2007 09:47:16 +0000 (09:47 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3762 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/synchro/philosopher.c

index 3ce27ca..e6652e9 100644 (file)
@@ -70,9 +70,9 @@ static void philo_thread(void *arg) {
    
    for (i=0; i<lunch_amount; i++) {
       pickup(id,i);
-      gras_os_sleep(id / 10.0); /* each philosopher sleeps and eat a time related to its ID */
+      gras_os_sleep(id / 100.0); /* each philosopher sleeps and eat a time related to its ID */
       putdown(id);
-      gras_os_sleep(id / 10.0);
+      gras_os_sleep(id / 100.0);
    }
    
    xbt_mutex_lock(mut_end);