Patent ID: 8381011

Claim:
A method for adjusting a period of a clock interruption, comprising: determining a number of processes in a run-queue of a processor; and adjusting, directly based on the determined number of processes, the period of the clock interruption for use in a run state of the processor such that a first period of the clock interruption for use when the number of the processes is greater than a reference threshold is less than a second period of the clock interruption for use when the number of the processes is not greater than the reference threshold, wherein the processor executes the processes in the run-queue by a trigger of the clock interruption, wherein the reference threshold comprises a first threshold and a second threshold greater than the first threshold, and wherein the adjusting the period of the clock interruption for use in the run state of the processor comprises: determining the first period of the clock interruption for use when the number of the processes is greater than the first threshold and not greater than the second threshold; determining the second period of the clock interruption larger than the first period of clock interruption for use, when the number of the processes is not greater than the first threshold; and determining a third period of clock interruption less than the first period of clock interruption for use when the number of the processes is greater than the second threshold.