Add ej01 + readme

This commit is contained in:
Dennis Eckerskorn 2024-10-15 17:57:18 +02:00
parent 44b5d3e589
commit fce6fc9073
2 changed files with 30 additions and 1 deletions

View File

@ -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")

View File

@ -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:
``` ```