Scheduling: Possible Actions
INVOKES: call INVOKE’s as soon as possible
- may depend on other data
- moving it outside of an if-block: depending on cost-function (ESTIMATE of this and following functions concerning execution time, dataflow and fees (resources).
EXTRACT: move EXTRACT’s to where the result is actually needed
- no sense of checking/waiting for results before they are needed
- instead of waiting, polling all invocations and issue next possible invocation as soon as data could be extracted
TERMINATE: terminate invocations that are no longer needed (save resources)
- not every method invocation has an extract (e.g. print-like functions)