Supports thread priority.
Add sample programs using threads with priorities.