In this article we will learn how to work with thread priorities when there are several threads competing for CPU time. Example code is also provided. In a uni-processor system, when several threads are competing for the CPU, you might want a certain thread to get more CPU time (burst time) over the remaining […]