Java concurrency programming from getting started to mastering-master

Source: Internet
Author: User

Master:
Thread;
Thread security;
Thread-Safe collection classes;
Multi-threaded interaction: thread valves;
thread pool;
Fork/join;

2nd: Know thread:

 thread the properties and methods inside;
  thread;
  thread life cycle;
  daemon thread;
  thread Group;
  copy of Current thread: ThreadLocal;
  thread exception handling;

3rd: Thread security:
 java memory model and multithreading;
  thread unsafe and thread safe;
  implicit lock synchronized;
  Explicit locking lock and reentrantlock;
  Explicit locks Readwritelock and Reentrantreadwritelock;
  explicit lock stampedlock;
  deadlock;
 volatile keyword;
  atomic variable: atomic;
  singleton mode;

The 4th Chapter: Thread-Safe Collection classes:
java.util.Hashtable;
Java.util.concurrent.ConcurrentHashMap;
Java.util.concurrent.CopyOnWriteArrayList;
Java.util.concurrent.CopyOnWriteArraySet;
Copyonwrite mechanism;
Vector;
StringBuilder and StringBuffer;

The 5th chapter: The Interaction between Multithreading: Thread valve:
blocking queue blockingqueue;
array blocking queue arrayblockingqueue;
linked list blocking queue linkedblockingqueue;
priority blocking queue Priorityblockingqueue;
delay queue Delayqueue;
synchronization queue Synchronousqueue;
linked list bidirectional blocking queue Linkedblockingdeque;
linked list transmission queue LinkedTransferQueue;
synchronization counter Countdownlatch;
abstract queue synchronizer Abstractqueuedsynchronizer;
synchronization counter semaphore;
synchronization counter cyclicbarrier;

6th: thread pool:

 newsinglethreadexecutor use;
 newcachedthreadpool;
 newfixedthreadpool;
  thread pool;
  thread pool;
  custom thread pool and executorservice;
  thread pool is being used incorrectly at work;

The 7th Chapter: Fork/join Framework:
Future mission mechanism and futuretask;
What is the Fork/join framework;
Know the family of Fork/join's JDK;
The realization principle of fork/join frame;
Exception handling mechanisms and methods;
The advantages and disadvantages of fork/join model and its practical application scenarios;

Thread combat experience;

The first is an implicit lock: synchronized; Then a display lock appears: Reentrantlock Series interface and implementation class, then the thread pool appears,
Paired with a blocking queue (the blocking queue provides the task, which is the specific business logic to be implemented; The thread pool is responsible for providing threads to perform these tasks);
Then there is the suspension lock (synchronized's enhanced version, as if it is better than the explicit lock);

Java concurrency programming from getting started to mastering-master

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.