Java.util.concurrent: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:


=Executors=
=Executors=
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.

Revision as of 03:29, 21 January 2016



in process of being migrated from https://home.feodorov.com:9443/wiki/Wiki.jsp?page=JavaConcurrent

External

Internal

Overview

java.util.concurrent is a collection of utility classes to use for concurrent programming.

Executors

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 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.