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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -