Execute Runnable
s directly on the current thread, using a stack frame.
Execute Runnable
s directly on the current thread, using a stack frame.
This is not safe to use for recursive function calls as you will ultimately
encounter a stack overflow. For those situations, use trampoline
.
A trampolining ExecutionContext
A trampolining ExecutionContext
This ExecutionContext
is run thread locally to avoid context switches.
Because this is a thread local executor, if there is a dependence between
the submitted Runnable
s and the thread becomes blocked, there will be
a deadlock.
Special
ExecutionContext
instances.