Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: Issues with task priorities in NDK

$
0
0

emil,

I expect that it should work with PRI == NC_PRIORITY_HIGH.  But, I don't think you should create the task with PRI == 1.

Typically, the NDK network task is set to run at OS_TASKPRINORM (defaults to 5), so I would recommend creating it at that priority.  Furthermore, I would recommend that you *only* use the NDK's defined priority values (instead of hard numbers) when setting Task priorities (e.g. instead of "5" for a Task priority, use OS_TASKPRINORM).

Just in case you have not already seen it, discussions on this in the NDK User's Guide (spru523h.pdf), it can be found in your NDK installation:

3.1.2.3 Priorities for Tasks that Use NDK Functions

4.2.2 Scheduling Options

4.2.3 Scheduler Thread Priority

Steve


Viewing all articles
Browse latest Browse all 25965

Trending Articles



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