Versions Compared

Key

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

Programs may submit only tasks that support interruption using Thread.interrupt() to thread pools that require the ability to shut down the thread pool or to cancel individual tasks within the pool. Programs must not submit tasks that lack interruption support to such thread pools. According to the Java API interface [API 2006], the java.util.concurrent.ExecutorService.shutdownNow() method

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

TPS02-J

low

probable

medium

P4

L3

Bibliography

[API 2006]

interface ExecutorService

[Goetz 2006a]

Chapter 7, Cancellation and Shutdown

...

      Rule 11: Thread Pools (TPS)Image Added