OOM_ADJ对于低内存的时候,我们总是想尽量杀掉background的app,尽量保留persist service(比如输入法),让前台app能够流畅的运行。1,background app的adj尽量设高一些,但是max和mini之前,尽量还是要保留一些差距,这样让系统可以逐步去kill进程,...
分类:
其他好文 时间:
2014-07-09 20:41:28
阅读次数:
234
Introduction to RedisRedis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys ca...
分类:
其他好文 时间:
2014-07-09 15:35:56
阅读次数:
211
#include#include#includeusing namespace std;const int maxn=10010;vectorg[maxn];int Bcnt;int Top;int Index;int low[maxn],dfn[maxn];int belong[maxn],sta...
分类:
其他好文 时间:
2014-07-09 14:01:38
阅读次数:
163
1. Linux内核支持哪些加密算法 ?
内核支持的加密算法很多,包括:
对称加密算法,如AES;
摘要算法,如sha1,md5;
压缩算法,如deflate。
不过内核好像不支持非对称加密算法。
2. 加密算法源文件位置
这些算法作为加密函数框架的最底层,提供加密和解密的实际操作。这些函数可以在内核crypto文件夹下,相...
分类:
移动开发 时间:
2014-07-09 10:17:07
阅读次数:
482
第一:我们先看下质量压缩方法
private Bitmap compressImage(Bitmap image) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
image.compress(Bitmap.CompressFormat.JPEG, 100, baos);//质量压...
分类:
移动开发 时间:
2014-07-08 16:14:32
阅读次数:
157
与折半查找是同一个模式,不同的是,在这里不在查找某个确定的值,而是查找确定值所在的上下边界。
def getBounder(data, k, start, end, low_bound = False):
if end < start : return -1
while start > 1
if data[ mid ] ...
分类:
其他好文 时间:
2014-07-06 12:18:00
阅读次数:
311
by:白书
#define M 10000
int pre[M],dfs_clock,iscut[M],low[M],bcc_cnt,bccno[M];
vectorG[M],bcc[M];
struct Edge
{
int u,v;
Edge(int from,int to)
{
u=from;
v=to;
}
};
stack S;
int dfs(int u,int fa...
分类:
其他好文 时间:
2014-07-06 11:29:32
阅读次数:
198
Advanced Fruits
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1944
Accepted: 967
Special Judge
Description
The company "21st Century Fruits" has spec...
分类:
其他好文 时间:
2014-07-06 10:23:04
阅读次数:
166
//冒泡是相邻的两个数比较
void bubble_sort_low(int unsorted[],
int count) //低级
{
for (int i =
0; i1; i++) { //比较的趟数
printf("-----------------\n");
for (int j=0; j1-i; j++) {
...
分类:
其他好文 时间:
2014-07-06 00:35:49
阅读次数:
291
RMAN高级设置.本章内容:Configuring Advanced Channel Options 高级通道选项Configuring Advanced Backup Options 高级备份选项Configuring Auxiliary Instance Data File Names 配置辅助...
分类:
其他好文 时间:
2014-07-05 22:46:32
阅读次数:
539