• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Multiple Thread Pool Framework - HowTo

Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here are Jobs.
Job contain Different Tasks
- Task 11
- Task 12
- Task 13
Task 21
Task 22
Task 23
Task 31
Task 32
Task 33
Task 34

I am using Executor framework, and running say 3 task in different threads simeltaneoulsly. But right now there is no way to say those 3 threads run task from different job and not from same job. What I want is some kind of framework, where I can put these task in different buckets based on their job. And when thread activate and run the task it should pick task from different job bucket maybe in round-robin fashion.

Each Job having no interdependency with each other. For some job, it is nacessary to run only 1 task at a time. One important things, the task are added to thread pool at runtime.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic