Skip to main content

All Questions

Filter by
Sorted by
Tagged with
26 votes
7 answers
25k views

How to implement PriorityBlockingQueue with ThreadPoolExecutor and custom tasks

I've searched a lot but could not find a solutuion to my problem. I have my own class, BaseTask, that uses a ThreadPoolExecutor to handle tasks. I want task prioritization, but when I try to use a ...
mariusgreve's user avatar
  • 2,651