When should we use Java's Thread over Executor?

ripper234 picture ripper234 · Jul 7, 2009 · Viewed 28k times · Source

Executor seems like a clean abstraction. When would you want to use Thread directly rather than rely on the more robust executor?

Answer

Pablojim picture Pablojim · Jul 7, 2009

To give some history, Executors were only added as part of the java standard in Java 1.5. So in some ways Executors can be seen as a new better abstraction for dealing with Runnable tasks.

A bit of an over-simplification coming... - Executors are threads done right so use them in preference.