import _thread
import time
def core1_tarea():
while True:
print("Ejecutando en el Core 1")
time.sleep(1)
# Inicia una tarea en el segundo núcleo
_thread.start_new_thread(core1_tarea, ())
# Mientras tanto, el Core 0 sigue haciendo otra cosa
while True:
print("Ejecutando en el Core 0")
time.sleep(1)