copy below json file in file->preferences and search esp32 in boards and install
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json 1.TASK API
Examples taken from:-
https://learnesp32.com/videos/1/4_project%20walk%20through
OUTPUTS:-
13:37:16.280 -> Task1 is running on core 0
13:37:16.591 -> Task2 is running on core 1
2.Single task running
task 1 is running continusly