Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Similarly, tasks that use some mechanism other than Thread.interrupted() to determine when to shut down will be unresponsive to shutdown() or shutdownNow(). For instance, tasks that check a volatile flag to determine whether it is safe to shutdown will be unresponsive to these methods. The rule THI06 THI05-J. Do not use Thread.stop() to terminate threads provides more information on using a flag to terminate threads.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="da39707ee25f77eb-76f4dd96-4d1d4709-a86b9a59-944aa3d136e373d7e31f5579"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

interface ExecutorService

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e939cf596c3ec7f7-66793756-4d4041bd-84d5812b-7c8377ce62842ac1d4c75e9a"><ac:plain-text-body><![CDATA[

[[Goetz 2006

AA. Bibliography#Goetz 06]]

Chapter 7: Cancellation and shutdown

]]></ac:plain-text-body></ac:structured-macro>

...