From 506d937c16290e1807d9384208bc6e2ea6a9e553 Mon Sep 17 00:00:00 2001 From: Kevin William Olarte Braun Date: Thu, 10 Oct 2024 17:05:40 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20Ejercicio1.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ejercicio1.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Ejercicio1.py diff --git a/Ejercicio1.py b/Ejercicio1.py new file mode 100644 index 0000000..65347c3 --- /dev/null +++ b/Ejercicio1.py @@ -0,0 +1,13 @@ +import threading + +def SaludoHilo2(): + print("Soy el hilo 2") + t = threading.Thread(target=SaludoHilo3) + t.start() + +def SaludoHilo3(): + print("Soy hilo 3 y Ășltimo") + +print("Soy el Hilo 1 y primero") +t = threading.Thread(target=SaludoHilo2) +t.start()