Copyright © 2001 Qusay H. Mahmoud
14
Thread Priorities
lThreads will normally be competing for processor time
lTime-critical tasks with hard deadlines can be given a higher priority than less critical tasks
lThe Thread class defines three constants:
–MAX_PRIORITY (10)
–MIN_PRIORITY (1)
–NORM_PRIORITY (the default 5)
lUse getPriority() and setPriority()