From 7b89d1e3abf93207fe04a73685dfd7c761b4f231 Mon Sep 17 00:00:00 2001 From: Pau Date: Sat, 12 Oct 2024 17:48:40 +0200 Subject: [PATCH] first commit --- threads01/thread01 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 threads01/thread01 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() + + + +