Java Multithreading Knowledge points overview

Source: Internet
Author: User

Here only a summary of the role, the extremely simple list of knowledge points, need to be in the mind, if not familiar with the words, it is recommended to use network resources to learn.

1. threads, Process concepts

Concept

Thread state and its transformation

2. Deadlock, prevention, resolution

3.JDK Thread Implementation method

Inherit thread rewrite Run method, implement runnable implement run method, implement callable override call method

The call method can throw an exception to allow a return value

Join/jield/interrupt/stop/wait/sleep/setdaemon/suspend

4. Thread synchronization, Thread async

Synchronize usage scenarios: share data and resources. Producer consumers, philosophers dining

Asynchronous usage scenarios: time-consuming operations such as IO and the main thread does not depend on the result of the operation

5. Synchronization mechanism

Synchronized methods and blocks

Wait and Notify/notifyall methods (required within the synchronized adornment range)

Lock/trylock/lockinterruptibly method for re-entry lock object blocking/nonblocking/receiving exception blocking

6. Thread Communication

Synchronized+wait/notify

Await/signal/signalall method for condition conditional objects

Pipe flow

Shared variables

Callback

Distributed systems need middleware

Signal Volume

Memory mapping

Socket

7. Thread pool

Executorservice-threadpoolexecutor/schedulepoolexecutor

Newcachedthreadpool

8.future/futuretask

Callable object, Get method

9.Concurrent Concurrency Toolkit

Java Multithreading Knowledge points overview

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.