Patent ID: 7844970

Claim:
A computer implemented method for controlling preemption rates, the computer implemented method comprising: responsive to a plurality of processes being executed by a processor, determining a preemption interval, wherein the preemption interval is a minimum time interval before a priority preemption of a currently running process by a higher priority process occurs; subtracting a last preemption time from a current time to determine a current time interval, wherein the current time interval is an interval of time since a most recently performed priority preemption of a process took place; determining whether the preemption interval has expired, wherein the preemption interval has expired if the current time interval is greater than or equal to the preemption interval; preempting the currently running process in response to a determination that the preemption interval has expired, wherein the preemption interval is adjusted upon determining that adjusting the preemption interval will reduce time in executing processes; and responsive to performing the priority preemption, setting the last preemption time as the current time, wherein the last preemption time is a time at which the most recently performed priority preemption of a process took place.