Thread SMP cortex a53 4 core

123 146 Reputation points
2021-08-15T14:48:47.387+00:00

I have ported Threadx smp to the cortex-A53 4 core platform, and I have created 4 threads. The 4 threads are thread0, thread1, thread2, thread3. I set thread0 priority to 1. The priority of thread1 and thread2 is set to 2. The priority of thread3 is set to 3. I hope that thread1 and thread2 can run in parallel on core0 and core1. But when I tested it, I found that thread1 and thread2 are all running on core0. How can I configure thread1 and thread2 to run in parallel on core0 and core1?

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
323 questions
{count} votes

Accepted answer
  1. AndresMlinar 256 Reputation points
    2021-08-16T14:48:13.557+00:00

    ThreadX SMP has been already ported to Cortex A53. The port is available here:

    https://github.com/azure-rtos/threadx/tree/master/ports_smp/cortex_a5x_smp

    we recommend you use the port we provide.

    In case you want to assign threads to cores you can use the available API to achieve that. It is documented here:

    https://learn.microsoft.com/en-us/azure/rtos/threadx/overview-threadx#multicore-support-amp--smp

    0 comments No comments

0 additional answers

Sort by: Most helpful