diff --git a/py/threads/01.py b/py/threads/01.py index 6006275..6abf0eb 100644 --- a/py/threads/01.py +++ b/py/threads/01.py @@ -1,17 +1,15 @@ -# importamos threading import threading -def hilo3(): - print("Soy hilo 3 y Ășltimo") -def hilo2(): - print("Soy el hilo 2") - t3 = threading.Thread(target=hilo3) - t3.start() - t3.join() +def Hilo2(): + print ('Soy el hilo 2\n') + t3 = threading.Thread(target=Hilo3) + t3.start() -if __name__ == "__main__": - print("Soy el Hilo 1 y primero") - t2 = threading.Thread(target=hilo2) - t2.start() - t2.join() +def Hilo3(): + print ('Soy el hilo 3 y Ășltimo\n') + +t2 = threading.Thread(target=Hilo2) + +t2.start() +print ("Soy el Hilo 1 y primero\n") \ No newline at end of file