-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
In many actor systems (most notable Erlang), executors are optimized by having a "next task" slot in each executor queue. Whenever a new Runnable
is scheduled, the future is first pushed to a slot separate from the normal queue. If a Runnable
is already in this slot, it is pushed to the back of the queue. When it comes time to read from this queue, the slot is checked and popped from before the normal queue is.
This is optimal because if a task wakes another task to be immediately executed, the second task will be queued up immediately, which can emulate sequential computations very well.
Metadata
Metadata
Assignees
Labels
No labels