Work Stealing Queue
class WorkStealingQueue<E>(parallelism: Int) : AbstractQueue<E> , BlockingQueue<E>
Content copied to clipboard
WIP – The intent is to use this queue to store tasks in a way that a ThreadPoolExecutor can fetch them in a mostly-priority order, but with a preference for keeping work local to a thread if the other threads already have their own work to do.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun drainTo(c: MutableCollection<in E>, maxElements: Int): Int
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard