The prioritization needs to be considered in the following situations:
1, the I/O process, let it into the highest priority queue, in time to respond to the process requiring I/O interaction. Typically, a small time slice is executed, in which the data for an I/O request can be processed and then transferred to the blocking queue.
2, the calculation of the process, each time after the execution of the chip into the lower queue. Finally, the maximum time slice is used to execute.
3, the number of I/O is not many, but mainly CPU processing process. When I/O is complete, I leave the queue when I return to the priority I/O request to avoid successive drops after each of the highest priority queues.
4, in order to adapt to a process at different time period of the operation characteristics, I/O completion, improve priority; When the time slice is exhausted, the priority is lowered.
Determination of Process priority