--- a/jdk/src/share/classes/java/util/concurrent/ThreadPoolExecutor.java Mon Mar 10 23:23:47 2008 -0700
+++ b/jdk/src/share/classes/java/util/concurrent/ThreadPoolExecutor.java Mon Mar 10 23:23:47 2008 -0700
@@ -1342,6 +1342,10 @@
* tasks are executed, but no new tasks will be accepted.
* Invocation has no additional effect if already shut down.
*
+ * <p>This method does not wait for previously submitted tasks to
+ * complete execution. Use {@link #awaitTermination awaitTermination}
+ * to do that.
+ *
* @throws SecurityException {@inheritDoc}
*/
public void shutdown() {
@@ -1364,6 +1368,10 @@
* that were awaiting execution. These tasks are drained (removed)
* from the task queue upon return from this method.
*
+ * <p>This method does not wait for actively executing tasks to
+ * terminate. Use {@link #awaitTermination awaitTermination} to
+ * do that.
+ *
* <p>There are no guarantees beyond best-effort attempts to stop
* processing actively executing tasks. This implementation
* cancels tasks via {@link Thread#interrupt}, so any task that