commit 7b89d1e3abf93207fe04a73685dfd7c761b4f231 Author: Pau Date: Sat Oct 12 17:48:40 2024 +0200 first commit diff --git a/threads01/thread01 b/threads01/thread01 new file mode 100644 index 0000000..c2032e9 --- /dev/null +++ b/threads01/thread01 @@ -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() + + + +