From: Ricardo Markiewicz Date: Thu, 1 Dec 2005 05:04:55 +0000 (+0000) Subject: Saco el n=0 para que haya delay. X-Git-Tag: darcs_import~1 X-Git-Url: https://git.llucax.com/z.facultad/75.59/filosofos.git/commitdiff_plain/ad310ae4f5fe1c1f3fd35afb465c2c71f675b05c Saco el n=0 para que haya delay. --- diff --git a/src/filosofos3.java b/src/filosofos3.java index ca8b595..c6d94da 100644 --- a/src/filosofos3.java +++ b/src/filosofos3.java @@ -91,7 +91,6 @@ class Filosofo extends Thread palitos.obtenerPalitos (iId, izq, der); System.out.println ("Soy " + id + " y estoy comiendo por " + (new Integer(n)).toString ()); comidas_actuales++; - n = 0; try { Thread.sleep (n*1000); } catch (Exception e) {} @@ -103,7 +102,6 @@ class Filosofo extends Thread { int n = r.nextInt (5) + r.nextInt (2); System.out.println ("Soy " + id + " y estoy pensando por " + (new Integer(n)).toString ()); - n = 0; try { Thread.sleep (n*1000); } catch (Exception e) {}