Thread Priorities
- Different threads can have different priorities.
- The scheduler will run the highest priority thread that is ready.
- Higher priority threads will run before lower priority threads.
- If a lower priority thread is running and a higher priority thread becomes ready to run, the higher thread will start running.
- A Thread can call yield() to give other equal-priority threads a chance to run, if they are ready.