Add ej01 + readme
This commit is contained in:
parent
44b5d3e589
commit
fce6fc9073
|
@ -1 +1,14 @@
|
||||||
print("test")
|
import threading
|
||||||
|
|
||||||
|
def Hilo2():
|
||||||
|
print ('Soy el hilo 2\n')
|
||||||
|
t3 = threading.Thread(target=Hilo3)
|
||||||
|
t3.start()
|
||||||
|
|
||||||
|
def Hilo3():
|
||||||
|
print ('Soy el hilo 3 y último\n')
|
||||||
|
|
||||||
|
t2 = threading.Thread(target=Hilo2)
|
||||||
|
|
||||||
|
t2.start()
|
||||||
|
print ("Soy el Hilo 1 y primero\n")
|
16
readme.md
16
readme.md
|
@ -1,5 +1,21 @@
|
||||||
### Ejercicio01:
|
### Ejercicio01:
|
||||||
|
|
||||||
|
```
|
||||||
|
import threading
|
||||||
|
|
||||||
|
def Hilo2():
|
||||||
|
print ('Soy el hilo 2\n')
|
||||||
|
t3 = threading.Thread(target=Hilo3)
|
||||||
|
t3.start()
|
||||||
|
|
||||||
|
def Hilo3():
|
||||||
|
print ('Soy el hilo 3 y último\n')
|
||||||
|
|
||||||
|
t2 = threading.Thread(target=Hilo2)
|
||||||
|
|
||||||
|
t2.start()
|
||||||
|
print ("Soy el Hilo 1 y primero\n")
|
||||||
|
```
|
||||||
|
|
||||||
### Ejercicio02:
|
### Ejercicio02:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue