
Chapter 20. Object pools 525
The following article in IBM developerWorks:
Goetz, B., 2004: Java Theory and Practice: Garbage Collection and
Performance at
http://www-106.ibm.com/developerworks/java/library/j-jtp01274.html
20.2 Sample scenario
This sample application demonstrates how performance can be improved by
using Object pools. A specified number of job threads are created and the
application returns the total average execution time for objects managed with
and without Object pooling.
This application takes two parameters:
Number of threads: the number of job threads it will create.
Java class name: which Java class is being used.
Each