From: Ricardo Markiewicz Date: Tue, 29 Nov 2005 04:50:30 +0000 (+0000) Subject: Pongo la espera en segundos para ser consistente. X-Git-Tag: darcs_import~8 X-Git-Url: https://git.llucax.com/z.facultad/75.59/filosofos.git/commitdiff_plain/6837ea0adc558be8d6f0be164655f9d348a87483?hp=d4b0e953509869f6716ff15cc4a50eea909f367f Pongo la espera en segundos para ser consistente. --- diff --git a/src/filosofos3.java b/src/filosofos3.java index 5d35874..68299de 100644 --- a/src/filosofos3.java +++ b/src/filosofos3.java @@ -80,7 +80,7 @@ class Filosofo extends Thread System.out.println ("Soy " + id + " y estoy comiendo por " + (new Integer(n)).toString ()); comidas_actuales++; try { - Thread.sleep (n); + Thread.sleep (n*1000); } catch (Exception e) {} finally {} } @@ -90,7 +90,7 @@ 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 ()); try { - Thread.sleep (n); + Thread.sleep (n*1000); } catch (Exception e) {} finally {} }