Using Java I need to implement the following architecture: There are multiple queues with jobs continuously coming in the queues. There is a single thread picking up jobs from the queues following a scheduling algorithm. I should be able to write my own scheduling algorithm. Can you please tell me which Java API to use to implement this? I have used ThreadPoolExecutor, but with this I could implement a single job queue and a thread pool containing multiple threads. Thanks in advance!
-
Have you looked at all the implementations of the Queue interface in its javadoc? Pick your poison.JB Nizet– JB Nizet2013-07-21 21:20:03 +00:00Commented Jul 21, 2013 at 21:20
-
Actually I am able to implement queue. What I need is multiple queues and a single thread..kajarigd– kajarigd2013-07-21 21:27:45 +00:00Commented Jul 21, 2013 at 21:27
Add a comment
|