What is a thread quantum, and how can I identify it on my system?
Each thread has a quantum, which is effectively how long it is allowed to keep hold of the CPU if: it remains runnable; the scheduler determines that no other thread needs to run on that CPU instead.
Thread Quantum is the amount of time that the schedule allows a thread to run before scheduling a different thread to run.
The default quantum is 0.1 seconds; the degree to which changing the nice value affects the quantum has varied somewhat across kernel versions. This method of adjusting the quantum was removed starting with Linux 2.6.
In CFS, the quantum is the same for all threads and priorities.
Thread Quantum is the amount of time that the schedule allows a thread to run before scheduling a different thread to run.
What are threads?
Platform Builder: Setting the Default Thread Quantum
As far as editing goes...There is a registry setting in windows that allows priority changing:
HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlSet / Control / PriorityControl / Win32PrioritySeparation
0 Foreground and background applications equally responsive
1 Foreground application more reponsive than background
2 Best foreground application response time
Check out this tutorial on thread quanta and scheduling
In particular:
Each thread has a quantum, which is effectively how long it is allowed to keep hold of the CPU if:
it remains runnable;
the scheduler determines that no other thread needs to run on that CPU instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With