C
Christopher Benson-Manica
The Sun documentation says that shutdownNow() is only a "best-effort"
attempt to end all processing tasks. Is it reasonable to assume that
the Java implementation will attempt to end the tasks with either
Thread.interrupt() (and code appropriately for that possibility) or
some other transparent method with a high probability of success? I
am using the 1.5 Windows implementation from Sun, so I would gather
that in all likelihood coding for Thread.interrupt() will be
sufficient, but I find the Sun documentation to be uncomforting.
attempt to end all processing tasks. Is it reasonable to assume that
the Java implementation will attempt to end the tasks with either
Thread.interrupt() (and code appropriately for that possibility) or
some other transparent method with a high probability of success? I
am using the 1.5 Windows implementation from Sun, so I would gather
that in all likelihood coding for Thread.interrupt() will be
sufficient, but I find the Sun documentation to be uncomforting.