How to find which core a task is running on

srjasz
Posts: 46
Joined: Wed Apr 03, 2024 4:29 pm

How to find which core a task is running on

Postby srjasz » Mon Jul 08, 2024 6:18 pm

I have been using vTaskList() and vTaskGetRunTimeStats() which are very helpful. Unfortunately they don't tell which core the task is running on. Is there a way to find out which core a task is running on?
Thanks

eriksl
Posts: 116
Joined: Thu Dec 14, 2023 3:23 pm
Location: Netherlands

Re: How to find which core a task is running on

Postby eriksl » Sat Jul 27, 2024 9:02 am

I haven't found it too. Apparently it's either pinned to one cpu, or it's running on whatever CPU that's idle at that moment.

Who is online

Users browsing this forum: Google [Bot] and 85 guests