@Deprecated public class ImportanceParameters extends PriorityParameters
In some realtime systems an external physical process determines
the period of many threads. When rate-monotonic priority assignment
is used to assign priorities, many of the threads in the system may
have the same priority because their periods are the same. However,
it is conceivable that some threads may be more important than others
and in an overload situation importance can help the scheduler decide
which threads to execute first.
The base scheduling algorithm represented by PriorityScheduler
must not consider importance.
Constructor and Description |
---|
ImportanceParameters(int priority,
int importance)
Deprecated.
Creates an instance of
ImportanceParameters . |
Modifier and Type | Method and Description |
---|---|
int |
getImportance()
Deprecated.
Gets the importance value.
|
void |
setImportance(int importance)
Deprecated.
Sets the importance value.
|
java.lang.String |
toString()
Deprecated.
Prints the value of the priority and importance values
of the associated instance of
Schedulable |
getPriority, isCompatible, setPriority, subsumes
clone, getAffinity
public ImportanceParameters(int priority, int importance)
ImportanceParameters
.priority
- The priority value assigned to schedulables
that use this parameter instance. This value is used in
place of the value passed to Thread.setPriority
.importance
- The importance value assigned to schedulable
objects that use this parameter instance.public int getImportance()
Schedulable
.public void setImportance(int importance)
RealtimeThread.setSchedulingParameters(SchedulingParameters)
,
the importance of those schedulables is altered at a moment
controlled by the schedulers for the respective schedulables.importance
- The value to which importance is set.StaticIllegalArgumentException
- when the given importance
value is incompatible with the scheduler for any of the
schedulables which are presently using this
parameter object.public java.lang.String toString()
Schedulable
toString
in class PriorityParameters