public final class HomogeneusSpreadNicenessHandler extends NicenessHandler
1)niceness(i+1)-1 <= niceness(i) <= niceness(i+1)2)multiplicity(n) = mfor all niceness valuesn, or exists a niceness valuen0such as:multiplicity(n) = mforn <= n0andmultiplicity(n) = m+1forn > n0
| Constructor and Description |
|---|
HomogeneusSpreadNicenessHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getNiceness(int i,
int total,
int minNiceness,
int maxNiceness)
Returns the niceness of the i-th process out of a total of
total |
getInstancepublic int getNiceness(int i,
int total,
int minNiceness,
int maxNiceness)
NicenessHandlertotalgetNiceness in class NicenessHandleri - from 0 to total -1, in decreasing order of
prioritytotal - total number of running processesCopyright © 2010–2016. All rights reserved.