Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all uniquetriplets in the array which gives the sum of z...
分类:
其他好文 时间:
2014-06-29 00:21:06
阅读次数:
237
1.boost锁的概述: boost库中提供了mutex类与lock类,通过组合可以轻易的构建读写锁与互斥锁。2.mutex对象类(主要有两种): 1.boost::mutex(独占互斥类) -->有lock和unlock方法 2.boost::shared_mutex(共享互斥类) -->有...
分类:
编程语言 时间:
2014-06-18 11:16:03
阅读次数:
262
在AWR中定位到问题SQL语句后想要了解该SQL statement的详细运行计划,于是就用AWR报告中得到的SQL ID去V$SQL等几个动态性能视图中查询,但发现V$SQL或V$SQL_PLAN视图都已经找不到相应SQL ID的记录,一般来说这些语句已经从shared pool共享池中被替换出去...
分类:
数据库 时间:
2014-06-18 09:55:27
阅读次数:
332
一.boost::thread的创建 1.线程创建方法一: boost::shared_ptr writeThread_; boost::function0 f = boost::bind(&DBTaskMgr::execute, this); writeThread_ = bo...
分类:
编程语言 时间:
2014-06-18 08:16:15
阅读次数:
283
1,Sql parse的种类
Sql parse又通常分为硬解析和软解析,当sql第一次执行的时候,会发生硬解析,之后的执行如果在shared pool中能找到就是软解析。因此,为提高数据性能,尽可能的让每次执行的SQL在shared pool找到。
2,SQL在哪些情况下会发送硬解析?
??????1)统计?信息改变
??
2)Sql中的表上有做ddl操作,包括grant和rev...
分类:
数据库 时间:
2014-06-18 00:41:17
阅读次数:
290
Given a set of distinct integers,
S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For example,
...
分类:
其他好文 时间:
2014-06-18 00:39:26
阅读次数:
301
BACKGROUNDA virtual machine (VM) architecture logically partitions a physical machine, such that the underlying hardware of the machine is time-shared...
分类:
其他好文 时间:
2014-06-17 23:49:03
阅读次数:
350
题目链接 Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn...
分类:
其他好文 时间:
2014-06-17 23:45:10
阅读次数:
373
一、Ashmem驱动程序
~/Android/kernel/goldfish
----include
----linux
----ashmem.h
----mm
----ashmem.c
驱动程序详解请看《A...
分类:
移动开发 时间:
2014-06-17 16:41:12
阅读次数:
801
主要参考文档:http://www.itpub.net/thread-1714191-1-1.html
Oracleh有两种服务器模式shared mode和dedicated mode。
Dedicated mode下,客户端每发来一个连接请求,数据库都要给这个请求建立一个服务进程来完成响应。而在shared mode下,oracle会首先建立一定数目的服务进程,客户端发来的请求会首先发送到...
分类:
数据库 时间:
2014-06-17 16:10:51
阅读次数:
316