Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

What is the Task concept in TI RTOS

$
0
0

Hi,

I need 2 different functionalities, that can run parallel.

My use case is like this,

I wanted to read ADC readings from cc2650 with a predefined interval and store the value to a global buffer. When ever a global buffer of size 256 Byte is completely filled, the SPI Flash write functionality get invoked and write the buffer to flash memory. But Flash write should not block the ADC reading operation. 

I don't know if the threading concepts in c are applicable in TI RTOS. 

I see that all the Tasks in TI RTOS are created with a priority and TI RTOS having  preemptive scheduling, which means low priority tasks will be in a queue until a high priority task finishes. 

What happens if I am giving same priority to the tasks I have explained above. Will it run parallel or one task will queue the other to take the turns.

Anyone having good understanding about the Task execution and scheduling please help me and let me know if running tasks parallel is possible or not


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>