Multi-threading with the ESP32

i need to use an interrupt, how can i set up on which core to run?

thanks!