上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: public class StreamTest { List<Student> students = Arrays.asList( new Student("张三",12, Student.Status.VOCATION), new Student("李四",18, Student.Status.B 阅读全文
posted @ 2021-09-08 11:17 s686编程传 阅读(31) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-09-05 22:53 s686编程传 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-08-17 21:07 s686编程传 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-08-14 01:14 s686编程传 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-08-12 23:02 s686编程传 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-08-07 01:24 s686编程传 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 手写MiniBlockingQueue阻塞队列 BlockingQueue接口 package com.xiaozhou; public interface BlockingQueue<T> { void put(T element) throws InterruptedException; T t 阅读全文
posted @ 2021-07-30 23:42 s686编程传 阅读(126) 评论(0) 推荐(0) 编辑
摘要: AQS独占模式(基于ReentrantLock公平锁) — 源码解析 一、 基本概念 AQS全称 AbstractQueuedSynchronizer, 是JUC包下的一个抽象类。可以说它是整个JUC并发的基础框架。非常重要。在ReentrantLock, ReentrantReadWriteLoc 阅读全文
posted @ 2021-07-30 06:07 s686编程传 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 手写mini版ReetrantLock(AQS公平锁) package com.xiaozhou; import sun.misc.Unsafe; import java.lang.reflect.Field; import java.util.concurrent.locks.LockSuppor 阅读全文
posted @ 2021-07-28 22:28 s686编程传 阅读(51) 评论(0) 推荐(0) 编辑
摘要: JUC 线程池 一、基本概念 提到线程池,我们首先会想到创建多线程的4中方式: 直接继承Thread,重写run方法 实现Runnable接口,传入Thread构造中 new FutureTask( Runnable实现/Callable实现) → new Thread(futureTask).st 阅读全文
posted @ 2021-07-28 01:38 s686编程传 阅读(452) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页