Java Reference
In-Depth Information
the total number of tasks processed and the total processing time, and uses the
terminated
hook to print a log message showing the average task time.
Listing 8.9. Thread Pool Extended with Logging and Timing.