A method comprising:receiving by a hypervisor in a data-processing system a first metric that is associated with a first domain, wherein:(i) the data-processing system comprises a first processor and a second processor,(ii) the first domain comprises a first plurality of tasks that were executed on the data-processing system, and(iii) the first metric is based on a measurement of total latency, during an earlier time interval, of tasks of the first domain that had an over priority; andwhen the value of the first metric is above a first threshold, increasing the amount of time to be spent in a later time interval to execute tasks of the first domain that have an over priority.