You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
233 B
14 lines
233 B
11 months ago
|
import threading
|
||
|
|
||
|
def actividad():
|
||
|
print ("Escribo desde un hilo")
|
||
|
return
|
||
|
|
||
|
print ("INICIO")
|
||
|
hilos = list()
|
||
|
for i in range(50):
|
||
|
t = threading.Thread(target=actividad)
|
||
|
hilos.append(t)
|
||
|
t.start()
|
||
|
print ("ESCRIBO EN PRINCIPAL")
|