Two principles of concurrent programming 15--thread pool

Source: Internet
Author: User

Java Concurrency Programming Practice Directory

Concurrent Programming 01--concurrenthashmap

Concurrent programming 02--blocking queues and producer-consumer patterns

Concurrent programming 03--latching countdownlatch and fence Cyclicbarrier

Concurrent programming 04--callable and future

Concurrent programming 05--completionservice:executor and Blockingqueue

Concurrent Programming 06--Task cancellation

Concurrent programming 07--interruption of task cancellation

Concurrent programming 08--task cancellation stop thread-based services

Concurrent programming 09--off of task cancellation Executorservice

Concurrent Programming 10--task cancellation "poison pill" object

Concurrent programming 11--Limitations of the shutdownnow of task cancellation and shutdown

Concurrent programming 12--use of the thread pool configuration threadpoolexecutor and Saturation policy

The overall architecture of the concurrent programming 13--thread pool

The principle of concurrent programming 14--thread pool

Two principles of concurrent programming 15--thread pool

Overview 1th Part Reference Code 1.1 executors full source 1.2 threadpoolexecutor full Source 2nd section Cheng Code Analysis 2.1 Create a "thread pool" 2.1.1 Newfixedthreadpool () 2.1.2 Thr  Eadpoolexecutor () 2.2 Add task to "thread pool" 2.2.1 Execute () 2.2.2 Addworker () 2.2.3 submit () 2.3 Close the thread pool 1th reference code (based on jdk1.7.0_45) 1.1 Executors Full Source

1.2 Threadpoolexecutor Full Source

Part 2nd Cheng Code Analysis 2.1 Creating a thread pool 2.1.1 Newfixedthreadpool ()

2.1.2 Threadpoolexecutor ()

2.2 Adding tasks to the thread pool 2.2.1 Execute ()

2.2.2 Addworker ()

2.2.3 Submit ()

2.3 Turn off the thread pool

Two principles of concurrent programming 15--thread pool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.