Añadir Ejercicio1.py

This commit is contained in:
Kevin William Olarte Braun 2024-10-10 17:05:40 +00:00
commit 506d937c16
1 changed files with 13 additions and 0 deletions

13
Ejercicio1.py Normal file
View File

@ -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()