public abstract class NicenessHandler extends Object
| Constructor and Description |
|---|
NicenessHandler() |
| Modifier and Type | Method and Description |
|---|---|
static NicenessHandler |
getInstance() |
abstract int |
getNiceness(int i,
int total,
int minNiceness,
int maxNiceness)
Returns the niceness of the i-th process out of a total of
total |
public static NicenessHandler getInstance()
public abstract int getNiceness(int i,
int total,
int minNiceness,
int maxNiceness)
totali - from 0 to total -1, in decreasing order of
prioritytotal - total number of running processesminNiceness - maxNiceness - Copyright © 2010–2016. All rights reserved.