Core Java Tutorials


Introduction

Java Hello World

Java Compilation

JDK New Features

JVM Architecture

Java OOPs Concepts

Java Package

Array

Exception Handling

String

Immutable Class

File Handling

Serialization

MultiThreading

Volatile

Concurrent Package

Collection

Collection Internal

Generics

Cloning

Reflection In Java

Annotation

Class Loader

Java Inner classes

Garbage Collector

JDBC

References In Java

Heap Dump & Thread Dump

/java/java-annotationsPrevious             Next

Thread Executors

concurrent-thread-pool


Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory, and Callable classes defined in this package. This class supports the following kinds of methods:
 Methods that create and return an ExecutorService set up with commonly useful configuration settings.
 Methods that create and return a ScheduledExecutorService set up with commonly useful configuration settings.
  Methods that create and return a "wrapped" ExecutorService, that disables reconfiguration by making implementation-specific methods inaccessible.
  Methods that create and return a ThreadFactory that sets newly created threads to a known state.
  Methods that create and return a Callable out of other closure-like forms, so they can be used in execution methods requiring Callable.

 The currently Java Memory Model guarantees the expected execution order of the multi-threaded code, in case there is no races in this code.


Most Commonally used method in Executors utility class:-

thread-executors