Sub-idle thread priority class
AssigneeRed Hat, Inc.
InventorMichael Tsirkin
Life of this patent
Estimating the term…
Abstract
Implementations for scheduling a sub-idle thread priority class are described. An example method may include assigning, by a scheduler of a computer system, a sub-idle execution priority class to a code optimization thread; responsive to determining that a central processing unit has been idle for at least a threshold period of time, running the code optimization thread; and generating, by the code optimization thread, an optimized code of a program executable by the computer system. The method may further execute the optimized code.
Claims17
A method comprising:
- assigning, by a scheduler of a computer system, a sub-idle execution priority class to a code optimization thread associated with a program;
- executing, by the computer system, the program;
- determining an average period of time for receiving responses to requests sent by threads assigned to a priority class higher than the sub-idle execution priority class;
- responsive to determining that a central processing unit (CPU) has been idle for at least the average period of time, running the code optimization thread assigned to the sub-idle execution priority class;
- and
- generating, by the code optimization thread, an optimized code of a portion of the program while executing the program.
A system comprising:
- a memory;
- and
- a processing device communicatively coupled to the memory to:
- assign, by a scheduler of a computer system, a sub-idle execution priority class to a code optimization thread associated with a program;
- execute, by the computer system, the program;
- determine an average period of time for receiving response to requests sent by threads assigned to a priority class higher than the sub-idle execution priority class;
- responsive to determining that a central processing unit (CPU) has been idle for at least the average period of time, run the code optimization thread assigned to the sub-idle execution priority class;
- and
- generate, by the code optimization thread, an optimized code of a portion of the program while executing the program.
A non-transitory computer readable storage medium including instructions that, when executed by a processing device, cause the processing device to perform a method comprising:
- assigning, by a scheduler of a computer system, a sub-idle execution priority class to a code optimization thread associated with a program;
- executing, by the computer system, the program;
- determining an average period of time for receiving responses to requests sent by threads assigned to a priority class higher than the sub-idle execution priority class;
- responsive to determining that a central processing unit (CPU) has been idle for at least the average period of time, running the code optimization thread assigned to the sub-idle execution priority class;
- and
- generating, by the code optimization thread, an optimized code of a portion of the program while executing the program.
Dependencies are inferred from the claim text.