public interface WaitingMood
Dispatcher
that uses a CPU-friendly strategy
(e.g. blocking wait) and a CPU-starving strategy (e.g. Thread.yield spining).Modifier and Type | Method and Description |
---|---|
void |
calm()
Turn the mood into eco CPU demand mode to save resources from the underlying component.
|
void |
nervous()
Turn the mood into aggressive CPU demand mode to effectively give an an additional resources boost to the underlying
component.
|
Copyright © 2017. All rights reserved.