wuqiu-ai / daily-interviews

java面试之每日一练
0 stars 0 forks source link

[基础] JUC相关 第19天 2020-09-14 #92

Open wuqiu-ai opened 4 years ago

wuqiu-ai commented 4 years ago

JUC相关?

wuqiu-ai commented 4 years ago
  1. tools

    CountDownLatch、CyclicBarrier、Semaphore、Executors、Exchanger

  2. locks

    Lock -> ReentrantLock -> ReentrantReadWriteLock.ReadLock、WriteLock Condition ReadWriteLock -> ReentrantReadWriteLock LockSupport

  3. atomic

    AtomicBoolean、AtomicInteger、AtomicIntegerArray......

  4. collections

    Queue: CocurrentLinkedQueue、BlockingQueue、Deque(ArrayBlockingDeque、LinkedList、BlockingDeque、LinkedBlockingDeque) CopyOnWriteArrayList CopyOnWriteArraySet ConcurrentSkipLiskSet ConcurrentMap -> CocurrentHashMap

  5. executor

    Future: RunnableFuture、RunnableScheduledFuture、FutureTask、ScheduledFuture Callable Executor:ExecutorServices、ScheduledExecutorService、ThreadPoolExecutor、SchduledThreadPoolExecutor CompletionService、ExecutorCompletionServices RejectHandler:DiscardPolicy、DiscardOldesPolicy、CallerRunPolicy、AbortPolicy TimeUnit