• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Backport vs apache commons pool

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I want to do thread pooling in jdk 1.4. I found that thread pooling can be done using backport util or apache commons v1.5. Could anyone please advise how these two are different so which one can I use

Thanks
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They both provide thread pool implementations that work, so which one would be better suited depends on your requirements. I don't have any experience usingThe JSR 166 backport on older Java versions, but it seems like a pretty good option. In theory, if you ever upgrade to Java 5 or later you could simply search/replace the package names in your source files, as the backport API's shoud be compatible with the Java 5 and later java.util.concurrent classes. You also get a lot of the rather nifty concurrency utilities, besides ThreadPoolExecutor / ScheduledThreadPoolExecutor, and that's a nice benefit as well.
reply
    Bookmark Topic Watch Topic
  • New Topic