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