Sending Data to Queue from Tasks in Both Cores

gfvalvo
Posts: 36
Joined: Thu Dec 24, 2020 3:06 pm

Sending Data to Queue from Tasks in Both Cores

Postby gfvalvo » Thu Dec 24, 2020 3:15 pm

Hello. Just starting to relearn RTOS techniques learned in college MANY years ago.

So, if I have tasks running in Core 0 and Core 1, can they each safely send data to the same FreeRTOS queue without any special precautions? Or, should the queue first be locked using a mutex?

Thanks.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: Sending Data to Queue from Tasks in Both Cores

Postby chegewara » Sat Dec 26, 2020 3:08 pm

You can send to queue from as many tasks as you want, from both cores.

Who is online

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