@rowens maybe you can try the second kernel to run an addition task
Python example:

from machine import Pin
from time import sleep
import _thread

led = Pin(25, machine.Pin.OUT)
share = 0
count = 0

#core2:
def core2():
while True:
global share
print("core2")
share +=1
led.on()
sleep(0.5)
led.off()
sleep(0.5)

_thread.start_new_thread(core2,())

#core1:
while True:
print(share)
sleep(0.2)