Thread priority


I am busy with making 2 extra threads in de digi me (even maybe 3 threads). But how can a programmer know what priority the thread must have and what priority the standard threads already have. Many thanks already

yours sincerely,


Hi Tim,

A good staryting point is APP_DEFAULT_API_PRIORITY which is a stadard constant defined in appconf.h
If you track this down you will find it gets set by NATranslatePriorityLevel() which you can look up in the help file. This will lead you to the definitions for bspPriorityEnumType. To get exact values you will need to find the definition of this enum.

In most cases yo can use the default value, or just subtract 1 or 2 to make it higher and add 1 or 2 to make it lower.

Overall the trick is to set priorities as relative values, dependant on how you want things to run.