first commit
This commit is contained in:
		
						commit
						7b89d1e3ab
					
				|  | @ -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() | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
		Loading…
	
		Reference in New Issue