Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thread Quantum?

What is a thread quantum, and how can I identify it on my system?

like image 842
C. Ross Avatar asked Mar 05 '10 15:03

C. Ross


People also ask

What is a thread quantum?

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.

What are thread quantum cycles?

Thread Quantum is the amount of time that the schedule allows a thread to run before scheduling a different thread to run.

How long is a quantum in Linux?

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.

Is the scheduling quantum the same for every thread?

In CFS, the quantum is the same for all threads and priorities.


2 Answers

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

like image 137
NebuSoft Avatar answered Nov 16 '22 00:11

NebuSoft


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.

like image 44
David Gelhar Avatar answered Nov 16 '22 01:11

David Gelhar