摘要: 1、通过ApplicationContext将bean注入容器中 阅读全文
posted @ 2018-05-04 16:09 秋水秋色 阅读(5982) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.ExecutionException; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.Future; import java.util.concurrent.RecursiveTask; public class CountTaskForkJoi... 阅读全文
posted @ 2018-05-04 15:59 秋水秋色 阅读(1088) 评论(1) 推荐(0) 编辑
摘要: public class QuickSort { static void quick_sort(int s[], int start_index, int last_index) { if (start_index = x) // 从右向左找第一个小于x的数 j--; ... 阅读全文
posted @ 2018-05-04 15:22 秋水秋色 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 采用LinkedList数据结构方式来模拟消费者与生产者模型,小Demo 阅读全文
posted @ 2018-05-04 15:20 秋水秋色 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 在concurrent包中提供了condition接口,通过该接口可唤醒指定的某个线程,而不是采用随机唤醒的形式。 阅读全文
posted @ 2018-05-04 15:09 秋水秋色 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 1、定义服务接口 2、定义服务接口实现类 3、定义服务提供者 4、定义服务消费者 5、服务提供中心类 阅读全文
posted @ 2018-05-04 14:48 秋水秋色 阅读(166) 评论(0) 推荐(0) 编辑