Java Thread Pool notes

Source: Internet
Author: User

The Java thread pool is a technique for creating threads in advance, and the thread pool creates a number of threads before a thread arrives, places them in an idle queue, and then re-uses those resources to reduce the frequent creation and destruction of objects.

1.jdk1.5 above provides a ready-made thread pool

The top interface of the 2.java thread pool is executor, a tool for executing threads

3. Thread pool interface is Executorservice

Java Thread Pool notes

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.