A method and system optimizes thread scheduling by receiving thread
objective data that includes a performance objective, sampling
performance metric data points, wherein each data point varies as a
function of scheduling quantum values, and calculating a new scheduling
quantum value by processing the performance metric data points according
to the performance objective. A process manager adjusts the scheduling
quantum value to increase thread performance by utilizing the calculated
scheduling quantum value.