1.Component的属性Permanent设置为Yes。
2.Component的ID为空。
3.Component被其他应用程序或者Feature使用。
4.设置了一个Condition,在安装时启用某个Feature,卸载时禁用该Feature。意思就是卸载的时候不卸载某个Feature,所...
分类:
其他好文 时间:
2015-01-28 11:03:28
阅读次数:
163
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a p...
分类:
其他好文 时间:
2015-01-27 18:23:55
阅读次数:
182
Condition是Locks锁下的还有一种线程通信之间唤醒、堵塞的实现。它以下的await,和signal可以实现Object下的wait,notify和notifyAll的所有功能,除此之外改监视器和已绑定到每一个条件,可以实现多条件的监听。Condition实质是被绑定到一个锁上,腰围特定的L...
分类:
编程语言 时间:
2015-01-27 11:00:40
阅读次数:
264
condition 类:
作为一个示例,假定有一个绑定的缓冲区,它支持 put 和 take 方法。如果试图在空的缓冲区上执行 take 操作,则在某一个项变得可用之前,线程将一直阻塞;如果试图在满的缓冲区上执行 put 操作,则在有空间变得可用之前,线程将一直阻塞。我们喜欢在单独的等待
set 中保存 put 线程和 take 线程,这样就可以在缓冲区中的项或空间变得可用时利用最佳规划...
分类:
编程语言 时间:
2015-01-27 09:25:18
阅读次数:
149
race conditions (when an anomalous result occurs due to an unexpected critical dependence on the timing of two events).A race condition occurs when tw...
分类:
Web程序 时间:
2015-01-27 00:08:31
阅读次数:
176
1.conditioncondition是java.util.concurrent.locks下的接口,Condition 将 Object 监视器方法(wait、notify 和 notifyAll)分解成截然不同的对象,以便通过将这些对象与任意 Lock 实现组合使用,为每个对象提供多个等待 s...
分类:
编程语言 时间:
2015-01-24 00:23:19
阅读次数:
319
JUnit中的assert方法全部放在Assert类中,现在总结一下经常用到的junit类中assert方法。
1.assertTrue/False([String message],boolean condition) 判断一个条件是true还是false。
2.fail([String mess...
分类:
其他好文 时间:
2015-01-23 21:26:05
阅读次数:
156
接上一篇,实现Condition三个条件,有这样一个应用: 1、 有三个进程,第一个进程运行1次,第二个进程运行2次,第三个进程运行3次; 2、 先运行第二个进程,然后第一个,然后第三个; 3、 依次运行5次循环。分析:此时若用Object的wait和notify是实现不了的,我们能...
分类:
编程语言 时间:
2015-01-23 10:45:42
阅读次数:
172
JS中大括号有四种语义作用 语义1,组织复合语句,这是最常见的 复制代码 代码如下: if( condition ) { //... }else { //... } for() { //... } 语义2,对象直接量声明 复制代码 代码如下: var obj = { name : 'jack', a...
分类:
编程语言 时间:
2015-01-23 10:40:43
阅读次数:
203
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a...
分类:
其他好文 时间:
2015-01-22 21:57:56
阅读次数:
361