1 thread creation, the thread class and the Runnable interface.
Http://www.cnblogs.com/dolphin0520/p/3913517.html
2notify and Wait,condition
Http://www.cnblogs.com/dolphin0520/p/3920385.html
- Condition is an interface, the basic method is the await () and the signal () method;
- Condition relies on the lock interface, generating a condition base code that is Lock.newcondition ()
- The await () and signal () methods that call condition must be within lock protection, meaning they must be between Lock.lock () and Lock.unlock.
--------------------------------------------------------------------------------------------------------
- Await () in Conditon corresponds to the Wait () of object;
- The signal () in condition corresponds to the Notify () of the object;
- The Signalall () in condition corresponds to the Notifyall () of the object.
The basic method of 3Thread.
Http://www.cnblogs.com/dolphin0520/p/3920357.html
Start (), run (), sleep (), yield (), join (), interrupt (), stop (), Destroy ()
GetId (), Getname/setname,getpriority/setpriority,setdaemon, and Isdaemon (sets whether the thread becomes the daemon thread and determines whether the thread is a daemon thread)
4synchronized
Synchronized is a Java keyword and is a built-in property of Java.
Http://www.cnblogs.com/dolphin0520/p/3923737.html
The difference between synchronized and lock:
http://houlinyan.iteye.com/blog/1112535
5Lock
Http://www.cnblogs.com/dolphin0520/p/3923167.html
1lock is an interface
2ReentrantLock, which means "reentrant lock", describes the concept of reentrant locking in the next section. Reentrantlock is the only class that implements the lock interface, and Reentrantlock provides more methods.
6ThreadLock
Http://www.cnblogs.com/dolphin0520/p/3920407.html
The Threadlocal class is a copy of a variable that is created for each thread.
7 Synchronizing containers
1) Vector, Stack, HashTable
2) class created by the static factory method provided in the collections class
8 Concurrent containers
Concurrenthashmap,copyonwritearraylist
9 Blocking queues
Arrayblockingqueue,linkedblockingqueue,priorityblockingqueue,delayqueue
In 10java 1.5, the auxiliary classes provided
Countdownlatch,cyclicbarrier,semaphore
11 Thread Pool
11Callable, Future and Futuretask
Thinking in Java (multithreading summary)