X-Git-Url: https://git.llucax.com/z.facultad/75.59/filosofos.git/blobdiff_plain/d81efeebad4aa4cc4b8cde29b93a0e48ff1cbd51..27b7c30ee95157607550495817109d20af55ece7:/src/filosofos3.java 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 {} }