first commit

This commit is contained in:
Pau 2024-10-12 17:48:40 +02:00
commit 7b89d1e3ab
1 changed files with 20 additions and 0 deletions

20
threads01/thread01 Normal file
View File

@ -0,0 +1,20 @@
import threading
def Presentacion1(String message):
print(message)
t2.start()
def Presentacion2(String message):
print(message)
t3.start()
def Presentacion3(String message):
print(message)
t1=threading.Thread(target=Presentacion1("Hola soy el hilo 1 y el primero"))
t2=threading.Thread(target=Presentacion2("Hola soy el hilo 2"))
t3=threading.Thread(target=Presentacion3("Hola soy el hilo 3 y el ultimo"))
t1.start()