Results 1 to 3 of 3
- 07-19-2011, 04:02 AM #1
Member
- Join Date
- May 2011
- Posts
- 47
- Rep Power
- 0
How do I go about implementing a self tuning thread pool?
I've implemented a thread pool that has only a fixed number of threads running, how would I go about dynamically tuning this number based on the load of the server?
Prefer to go about implementing it rather than using the one in the java libraries for the learning process.
- 07-19-2011, 04:54 AM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,606
- Rep Power
- 5
Define 'tuning'....if there are many requests, you should have a queue to handle those requests in turn. If there is a lack of requests, your should have threads waiting for requests. If by tune you mean make more efficient, there should be a clear demonstration that your present code will present a problem in a particular scenario to make the refactoring worth the effort.
- 07-19-2011, 06:01 AM #3
Member
- Join Date
- May 2011
- Posts
- 47
- Rep Power
- 0
Similar Threads
-
need help with thread pool
By crank6015 in forum New To JavaReplies: 1Last Post: 04-03-2011, 02:47 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/pool/Orac leDa
By Kirthana in forum JDBCReplies: 0Last Post: 02-11-2011, 03:21 PM -
How to correctly use a fixed size thread pool?
By johann_p in forum Threads and SynchronizationReplies: 1Last Post: 09-19-2010, 02:04 AM -
Thread Count Extends Beyond Pool
By jvermast in forum Threads and SynchronizationReplies: 1Last Post: 04-01-2010, 07:47 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks