multithreading - Java Futures "do the easy/fast ones first" or "speed of Execution Priority Queue" -


i took @ executorcompletionservice, wasn't quite it.

i've got collection of runnables. going complete quickly, while others going take hours. i'd fast ones done first, don't know ahead of time ones fast ones are. so... think means "try of them 1 second timeout. increase 2x timeout. keep 2x-ing timeout until done."

is there library or structure handles sort of thing? can't execute them @ once unbounded executorservice because i'll run out of memory.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -