This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 1404
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.
I agree. Here's the link:
subject: Thread Pooling performance
It's not a secret anymore!