Schedule the operating system to use shorter times

Some operating systems use time periods up to 200ms, which is too long when many threads can be scheduled. Shortening the maximum time value to 10-30ms can help by allowing more threads per second to run through the available CPUs. This can lower the scheduling latency at the expense of delaying threads that take longer than 10ms to complete.

Some application-specific tuning might be required, but try different values to see what works best for your application. More context switches might be required, but most modern microprocessors are capable of billions of instructions per second.

 

Next