fzy-blog

CompletableFuture实例

多线程异步并发
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748@RequestMapping("/getStudentInfoWithCompletableFuture")publ ...
全文...

ConcurrentHashMap

多线程异步并发
http://www.cnblogs.com/dolphin0520/p/3932905.html
全文...

Java8 新的异步编程方式 CompletableFuture

多线程异步并发
Java8 新的异步编程方式 CompletableFuturehttps://juejin.im/post/59eae61b51882549fc512b34
全文...

CopyOnWriteArrayList 与 Collections synchronizedList 的性能对比

多线程异步并发
CopyOnWriteArrayList 与 Collections synchronizedList 的性能对比列表实现有 ArrayList、Vector、CopyOnWriteArrayList、Collections.synchronizedList(list)四种方式。1 Arra ...
全文...

Java多线程总结之线程安全队列Queue

多线程异步并发
http://hellosure.iteye.com/blog/1126541DelayQueue 延时队列https://blog.csdn.net/RenYuanJinZhang_gg/article/details/81061730
全文...

Java多线程写同一个文件实现

多线程异步并发
最近项目中需要从网站上抓取大量的数据,采用了多线程技术,每个线程抓取的数据都需要保存到一个文件中,避免消耗大量的内存。 思路:多个访问线程将需要写入到文件中的数据先保存到一个队列里面,然后由专门的 写出线程负责从队列中取出数据并写入到文件中。 WriterQueue.Java 存放要输出的数 ...
全文...

Java并发编程:Callable、Future和FutureTask

多线程异步并发
http://www.cnblogs.com/dolphin0520/p/3949310.html
全文...

Java主线程等待子线程、线程池

多线程异步并发
123456789101112public class TestThread extends Thread{ public void run(){ System.out.println(this.getName() + "子线程开始"); try{ // ...
全文...

Java并发编程:CountDownLatch、CyclicBarrier和Semaphore

多线程异步并发
http://www.cnblogs.com/dolphin0520/p/3920397.html
全文...

Java并发编程:Timer和TimerTask

多线程异步并发
http://www.cnblogs.com/dolphin0520/p/3938991.html
全文...
Prev Next