This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 1371
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.
jQuery in Action, 2nd edition
subject: Thread Pooling performance
Similar Threads
Connection Pooling
JBoss supports Thread pooling?
Number of Entity Beans
Thread Pooling
Multithreading and Memory Management