Skip to content

hocktea214/juc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1 线程启动

  • extends Thread
  • implements Runnable
  • implements Callable
  • implements ThreadFactory
  • new ThreadPoolExecutor

2 线程状态

NEW -> RUNNABLE -> TERMINATED
NEW -> RUNNABLE -> WAITING -> RUNNABLE -> TERMINATED
NEW -> RUNNABLE -> TIMED_WAITING -> RUNNABLE -> TERMINATED

3 线程互斥

  • synchronized
  • ReetrantLock、ReetrantReadWriteLock

4 线程同步

  • CountDownLatch
  • CyclicBarrier
  • Semaphore
  • Phaser

5 容器

  • CopyOnWriteArrayList、CopyOnWriteArraySet
  • ConcurrentHashMap
  • ArrayBlockingQueue
  • LinkedBlockingQueue
  • PriortyBlockingQueue

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages