- 博客(11)
- 资源 (152)
- 收藏
- 关注
原创 Collections,Synchronized
atic List synchronizedList(list l) // //public static Map synchronizedMap(Map m) // //public static Set synchronizedSet(Set s) // //public static SortedMap synchronizedSortedMap(SortedMap sm) // //public static SortedSet synchronizedSortedSet(Sorte
2018-01-26 09:53:51 89
原创 ReentrantLock,Condition
i++) { queue.put("a"); String string = queue.getString(); System.out.println(string); } } public abstract class MessageQueue<T>{ private Queue<T> queue; private List<
2018-01-26 09:42:11 94
原创 ExecutorService
util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class ExecutorServiceTest { public static void main(String[] args) { ExecutorService exe =null; exe = E
2018-01-25 17:55:21 82
原创 CountDownLatch
A,它要等待其他4个任务执行完毕之后才能执行,此时就可以利用CountDownLatch来实现这种功能 public static void main(String[] args) throws InterruptedException { ExecutorService newFixedThreadPool = Executors.newFixedThreadPool(10); int num = 10; CountDownLatch cdl = new CountDownLatc
2018-01-25 17:53:15 100
原创 Callable 与 Future
ava.util.concurrent.Executors; import java.util.concurrent.Future; public class CallableTest { // 异步 木桶原理 public static void main(String[] args) throws InterruptedException, ExecutionException { ExecutorService executorService = Executors.ne
2018-01-25 17:51:59 82
原创 CyclicBarrier
c void main(String[] args) throws InterruptedException { ExecutorService newFixedThreadPool = Executors.newFixedThreadPool(10); int num = 5 ; CyclicBarrier cyclicBarrier = new CyclicBarrier(num); for (int i = 0; i < 5; i++) { newFix
2018-01-25 17:43:12 83
遍历 jdk1.7 jdk1.8 异同点
bin\jdeps.exe false // D:\soft\Java\jdk_1.8.0.0_64\bin\jjs.exe false // D:\soft\Java\jdk_1.8.0.0_64\javafx-src.zip false // D:\soft\Java\jdk_1.8.0.0_64\jre\bin\decora_sse.dll false // D:\soft\Java\jdk_1.8.0.0_64\jre\bin\j2pkcs11.dll
2018-01-23 16:04:58 170
手写 tomcat (nio)
ate int port = 8080; //private ExecutorService exec = Executors.newFixedThreadPool(60); private ExecutorService exec = new ThreadPoolExecutor(60, 60, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>(2000)); private Se
2018-01-22 17:08:15 155
手写 springmvc
ceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <org.slf4j-version>1.7.9</org.slf4j-versio
2018-01-16 11:15:26 108
pywin32-220.win-amd64-py2.7.exe
2017-05-15
python 2.7.9 64 windows
2017-05-15
推送sdk (类似百度 推送 ) android mina (待优化... )
2017-04-24
QQ 实战 客户端 android stdio
2017-04-22
多module pom项目 构建 maven
2017-03-28
libfastcommon
2017-03-13
mybatis generator 自动生成 dao mapping object
2017-03-08
jetty maven pom run
2017-03-07
python django firstweb
2017-02-21
springcloud hystrix 断路由
2017-02-21
springcloud bus rabbitmq 分布式队列
2017-02-21
springcloud zuul gateway 服务网关
2017-02-21
springcloud computeservice 服务提供者
2017-02-21
fastdfs linux 安装包
2019-05-08
手写 springmvc
2018-01-16
jmeter 用例 案例
2017-11-30
json 格式化展示 编辑(第三方开源框架 FlexiJsonEditor)
2017-10-24
rabbit mq demo spring java
2017-10-10
openfire_3_8_2.tar.gz xmpp openfire linux 安装 im 及时通讯服务器
2017-10-03
jad jd-gui java 源码查看 eclipse plugins jadclipse
2017-06-21
ucdemo discuz ucenter api for java
2017-06-07
net-snmp-5.3.0.1.tar.gz
2017-05-18
setuptools-0.6c11.tar.gz
2017-05-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人