Versions Compared

Key

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

...

Its important to keep the principle of thread pools in mind. Its commonly used by web applications.
It allows the reuse of threads, which means there is no need to create new thread instances. This reduces overhead, since the system don't have to manage new threads(no new memory allocation etc.). 

Runnables

Runnables can be also reused.

But a thread cannot switch the Runnable during execution.