]> git.llucax.com Git - z.facultad/75.59/filosofos.git/blobdiff - src/filosofos2.py
Fix doc3
[z.facultad/75.59/filosofos.git] / src / filosofos2.py
index da6fa8b1b48d94d460eb8dd3b1b28ef300517c42..37f2cd2e0ef4382631ea63960e97f3022e2264dc 100644 (file)
@@ -61,7 +61,6 @@ class filosofo(threading.Thread):
                        self.dejarPalitoIzquierdo()
                        self.dejarPalitoDerecho()
                        
-                       print 'Soy '+str(self.id)+' y solte los palitos'
                        return True
                else: return False
                
@@ -71,10 +70,16 @@ class filosofo(threading.Thread):
                
        def run(self):
                while not self.lleno():
+                       self.pensar()
                        self.agarrarPalitoDerecho()
                        self.agarrarPalitoIzquierdo()
-                       if not self.comer():
-                               self.pensar()
+                       self.comer()
+
+#              while not self.lleno():
+#                      self.agarrarPalitoDerecho()
+#                      self.agarrarPalitoIzquierdo()
+#                      if not self.comer():
+#                              self.pensar()
 
 if __name__ == '__main__':
        if len(sys.argv) < 3: