Java.util.concurrent Executors: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * java.util.concurrent =Overview= An ''executor'' is a mechanism that allows executing tasks on a thread different than the one...")
 
No edit summary
Line 5: Line 5:
=Overview=
=Overview=


An ''executor'' is a mechanism that allows executing tasks on a thread different than the one that submits the task for execution. The use of executors is preferred to explicitly creating <tt>Thread</tt> instances.  The executor decouples the task submission from the mechanics of how each task will be run, including details of thread use, scheduling, etc.
An ''executor'' is a mechanism that allows executing tasks on a thread different than the one that submits the task for execution. Executors are preferred to explicitly creating <tt>Thread</tt> instances.  The executor decouples the task submission from the mechanics of how each task will be run, including details of thread use, scheduling, etc.

Revision as of 03:30, 21 January 2016

Internal

Overview

An executor is a mechanism that allows executing tasks on a thread different than the one that submits the task for execution. Executors are preferred to explicitly creating Thread instances. The executor decouples the task submission from the mechanics of how each task will be run, including details of thread use, scheduling, etc.