在《并发容器 part 4 并发队列与Queue简介》节中的类图中可以看到,对于Queue来说,BlockingQueue是主要的线程安全版本。这是一个可阻塞的版本,也就是允许添加/删除元素被阻塞,直到成功为止。BlockingQueue相对于Queue而言增加了两个操作:put/take。下面是一...
分类:
编程语言 时间:
2014-12-02 23:54:50
阅读次数:
296
Very quietly I take my leave轻轻的我走了,As quietly as I came here;正如我轻轻的来;Quietly I wave good-bye我轻轻的招手,To the rosy clouds in the western sky.作别西天的云彩。The g...
分类:
其他好文 时间:
2014-12-02 15:11:04
阅读次数:
161
描述Today, I want to take a few minutes to speak with you-directly and clearly-about Ebola: what we're doing about it, and what you need to know. Becaus...
分类:
其他好文 时间:
2014-11-30 18:44:24
阅读次数:
126
1. 检查my.cnf,看看有没有密码......靠这也算一条啊2. 如果能够重启,首先使用–skip-grant-tables参数重启,然后改密码,再去掉–skip-grant-tables参数重启, 注意–skip-grant-tables的安全问题http://code.openark.org...
分类:
数据库 时间:
2014-11-28 17:44:58
阅读次数:
198
take 从列表中获取子列表into a b 把b conj 到a中(defn count-a-seq [lat] (reduce (fn [x y] (+ x 1)) 0 lat))reduce 将list通过fn一个个合并成一个,当然也可以只是对每个进行+1
分类:
其他好文 时间:
2014-11-27 23:30:56
阅读次数:
271
前提:你已经有了一定的Spring基础
你已经可以跑动一个简单的Spring batch 的实例
参考:Spring-Batch-In-Action
参考:http://www.cnblogs.com/gulvzhe/archive/2011/10/25/2224249.html
先盗几个图
JobLauncher
指定一个
JobRepository
JobLauncher 指定一...
分类:
编程语言 时间:
2014-11-26 21:05:13
阅读次数:
379
工作随笔1 // LinQ 分页2 listsearch = listsearch.Take(pageSize * pageIndex).Skip(pageSize * (pageIndex - 1)).ToList(); 1 //LinQ 按列去重 2 listDistinct = list.Di...
分类:
其他好文 时间:
2014-11-26 16:08:16
阅读次数:
208
ORDER BY Clauses
In general, the optimizer will skip the sort procedure for the ORDER BY clause if it sees that the rows
will be in order anyway. But let's examine some exceptional situations.
Fo...
分类:
数据库 时间:
2014-11-26 11:19:42
阅读次数:
229
[danny@localhost ~]$ cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# e...
分类:
系统相关 时间:
2014-11-25 18:28:37
阅读次数:
281
This page will describe the steps you have to take to install LAMP, which stands for Linux Apache MariaDB PHP. This page will show you, how to set up ...
分类:
其他好文 时间:
2014-11-25 17:48:57
阅读次数:
255