By jsugrue
via java.dzone.com
Published: Sep 08 2010 / 18:32
Since it has been introduced in JDK 1.5, I have loved the Executor abstraction over multi threaded execution. Basically you define tasks, implementing Runnable or Callable interfaces, and you submit those tasks to an Executor implementation. It's the Executor who knows how the tasks must be processed: scheduled at a certain time, enqueued in a separate single thread or using a thread pool. Different instances of Executor can be obtained through the Executors class.
Add your comment
Voters For This Link (16)
-
jsugrue -
alireza.haghighatkhah@gmail.com -
Tina_Zennand -
mukeshky -
allanclarke -
mswatcher -
webmascon -
dotCore -
edwinquita -
jo74315 -
john.jian.fang -
dr_pompeii -
kobrahunter -
tenshi -
lviggiano -
sunday