一.错误描述ORA-1157, "cannot identify/lock data file
%s - see DBWR trace
file"引起的原因:因为数据文件已经在被使用了从而导致数据库的后台进程不能找到相应的数据文件或者不能锁定相应的数据文件,这样数据库将禁止访问这些数据文件而其他的数...
分类:
其他好文 时间:
2014-05-17 04:42:32
阅读次数:
289
在jdk 的API中提供了一个字符串的阻塞队列 :class BoundedBuffer {
final Lock lock = new ReentrantLock(); final Condition notFull =
lock.newCondition(); final Con...
分类:
其他好文 时间:
2014-05-16 05:11:43
阅读次数:
323
题目要求:子线程循环10次,接着主线程循环100次,接着又回到子线程循环10次,接着再回到主线程又循环100,如此循环50次synchronized的使用import
java.util.concurrent.atomic.AtomicInteger;public class Traditional...
分类:
编程语言 时间:
2014-05-16 04:54:15
阅读次数:
312
四、实现 server URL接下来以推送最简单的锁屏命令为例,演示如何实现从服务器推送完整的 MDM 消息给注册设备。首先实现一个简单的Jsp 页面。页面中是一个 html 表单,在标签中我们会列出所有注册设备的 UUID(当然列出设备名称会更好),当你选择一个UUID,点击submit 按钮,服务器会向这个设备推送锁屏命令。servlet lock 来负责处理这个表单: Stringudid...
分类:
其他好文 时间:
2014-05-14 00:44:00
阅读次数:
521
TriangleGiven a triangle, find the minimum path
sum from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given...
分类:
其他好文 时间:
2014-05-13 18:51:44
阅读次数:
297
atitit.gui界面纵向居中总结
1.table法...这个简单..
表格设置100%高度,
三、把容器当作表格单元
CSS 提供一系列diplay属性值,包括 display: table, display: table-row, display: table-cell 等,能把元素当作表格单元来显示。这是再加上 vertical-align: middle,...
分类:
其他好文 时间:
2014-05-13 08:28:41
阅读次数:
295
本段程序主要利用数据结构栈的先进后出特点,实现回溯求解迷宫路径问题。
#include
#include
using namespace std;
//坐标类
struct Point
{
int x;
int y;
};
//地图类
template
struct Map
{
int (*p)[A];
int row;//行数
int col;//列数
};
//start起始点, ...
分类:
其他好文 时间:
2014-05-13 05:25:02
阅读次数:
478
关于MemStore的补充
在通过HStore.add向store中添加一个kv时,首先把数据写入到memstore中。这一点没有什么说明;
publiclongadd(finalKeyValue
kv) {
lock.readLock().lock();
try{
returnthis.memstore.add(kv);
}finally{
lock.readLock().un...
分类:
其他好文 时间:
2014-05-12 14:14:38
阅读次数:
340
Given amxnmatrix, if an element is 0, set its
entire row and column to 0. Do it in place.click to show follow up.Follow up:Did
you use extra space?A s...
分类:
其他好文 时间:
2014-05-12 08:22:51
阅读次数:
255
一.如何动态分配多维数组?
1.分配一个指针数组,然后把每个指针初始化为动态分配的行
代码如下:
int **array = (int **)malloc(ROW * sizeof(int*));
int i = 0;
for(i=0; i<ROW; i++){
array[i] = (int *)malloc(COL...
分类:
编程语言 时间:
2014-05-11 15:09:16
阅读次数:
349