The moose likes Threads and Synchronization and the fly likes Thread Pooling performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Thread Pooling performance" Watch "Thread Pooling performance" New topic

Thread Pooling performance

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1432
Performance-wise which one is better own Thread Poooling (or) Application servers thread pooling?
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
If you don't have significant threading experience, the thread pools of your container and many open source projects will be better. The gains you'll see should be minimal in any case unless you write a really poor implementation. My recommendation is to use stuff that works as much as you can and spend your time writing the project-specific code only you can write.

Have you profiled your application and found the thread pool to be a significant chunk of its time? If not, why even consider it? It isn't free just because it costs no money.
It is sorta covered in the JavaRanch Style Guide.
subject: Thread Pooling performance
It's not a secret anymore!