Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6179024

Clarify what happens if await timeout set to 0

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      Please review all the documentation for java.util.concurrent.* (and its subpackages) and whenever one is allowed to specify a timeout value, please indicate what happens if timeout==0.

      For example, in the above URL, what happens if ExecutorService.awaitTermination(0, TimeUnit.MILLISECONDS) is invoked? Does this mean "wait forever until shutdown has occured" or "time out immediately without waiting for shutdown to occur"?

      The specification should be clear so we are guaranteed a behavior across different platforms and JVMs.


      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html#awaitTermination(long,%20java.util.concurrent.TimeUnit)
      ###@###.### 10/14/04 08:35 GMT

            martin Martin Buchholz
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: