Timer Event Callback Priority

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

A simple clarification

In wiced_rtos_create_thread we can specify the Priority of the thread being created , I've created a thread with WICED_APPLICATION_PRIORITY which has priority 7, and I also have a timed event function wiced_rtos_register_timed_event which is executed at a interval of 1 seconds.

So Does the timed event has high priority over the Thread created with priority of 7?

Which has the highest priority?

0 Likes
2 Replies
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Since the defaul t timer thread priority "TX_TIMER_THREAD_PRIORITY" is set to 0, the timer callback would be called first.

Seyhan

0 Likes
Anonymous
Not applicable

So If I'm doing something important in thread2 which is having a priority of 7 and on a particular timeout I want to read data via I2C which is of less priority , how can I achieve that? (Note: I already have a thread1 with priority 5)

0 Likes