1. A method for controlling priority of dynamic compilation by a computer system, the method comprising: executing compilation tasks and application tasks by using threads pooled in a thread pool; monitoring a metric related to the dynamic compilation; determining whether the metric meets a predetermined criterion; and increasing resources for executing compilation tasks to reach peak throughput without relying on root privilege or losing thread fairness by causing a lowering of priority of the threads executing the application tasks in returning of the threads to the thread pool for next execution by a processor if the metric is determined to meet the predetermined criterion.