---
title: "Java Concurency Note"
author: "jnh"
date: "2013-12-26T21:34:45Z"
tags: []
categories: ["编程语言"]
slug: "java-concurency-note"
draft: false
lastmod: "2014-04-15T16:07:49Z"
id: 1996010
url: "https://jnh.iteye.com/blog/1996010"
---

这篇文章是我的多线程笔记，帮助梳理一下脉络。

 

**1. Basic Knowledge**

- Keywords: synchronized, volatile.
- Methods: wait(), notify(); run(), start();
- How to start thread?

        new MyThread().start();   or new Thread(new MyRunnable()).start().

- Thread Status

 

**2. Executor framework:**

- [Class UML](http://www.cnblogs.com/hzmark/archive/2013/01/21/JavaExecutor.html "Executor framework class UML")
- [Executors](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html), [ThreadPoolExecutor](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html "class in java.util.concurrent"), [ScheduledThreadPoolExecutor](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html "class in java.util.concurrent")
- [ForkJoinPool](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ForkJoinPool.html "class in java.util.concurrent"), [ForkJoinTask](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ForkJoinTask.html "class in java.util.concurrent")

 

**3. Concurrency Collection:**

ConcurrencyHashMap...

[http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/package-summary.html](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/package-summary.html)

 

**4. Resource**

- [聊聊并发系列文章](http://ifeve.com/talk-concurrency/)
- [深入理解Java内存模型](/admin/blogs/1995450a-memory-model-1)
- [Java内存模型详解](http://developer.51cto.com/art/200906/131393.htm)
- [Java 线程/内存模型的缺陷和增强](http://tech.163.com/06/0525/09/2HV7DCJ20009159T.html)
- [Java library performance optimzation using local references to final members: should you use it?](http://ulrichpalha.com/myblog/2011/12/16/personal-use-of-java-library-performance-optimzation-using-local-references-to-final-members/)