Patent ID: 8392898

Claim:
A computer implemented method for managing just-in-time compilation, the computer implemented method comprising: designating, by a computer, a set of compilation threads for performing compilation functions associated with an application; designating, by the computer, a set of computation threads for executing the application; calculating, by the computer, a ratio of processor cycles consumed by the set of compilation threads to processor cycles consumed by the set of computation threads during runtime as a function of a total amount of time spent on compilation of the application and a total amount of time spent on execution of the application; and allocating, by the computer, processor cycles within a processor between the set of compilation threads and the set of computation threads throughout each time interval in a plurality of time intervals during runtime, wherein processor cycles within the processor are allocated between the set of compilation threads and the set of computation threads to maintain the ratio of processor cycles consumed by the set of compilation threads to processor cycles consumed by the set of computation threads within the processor throughout each time interval in the plurality of time intervals, and wherein the set of compilation threads yields the processor to the set of computation threads when a compilation time budget threshold is exceeded for the time interval in the plurality of time intervals.