ICP简介Index Condition Pushdown (ICP) is an optimization for the case where MySQL retrieves rows from a table using an index. Without ICP, the storage e...
分类:
数据库 时间:
2015-11-11 23:48:08
阅读次数:
329
今天公司服务有段时间在报警,运维提供了一份那个时间段的log。用jstack发现有个进程一直等待资源,Waiting on condition。加上当时ping 服务一直有点不稳定,后面一直能ping通,怀疑是网络问题了。开始翻服务log,发现刚好那个时间段重启,于是问题也就明白了。中间碰到问题:w...
分类:
编程语言 时间:
2015-11-10 14:05:39
阅读次数:
433
今天发现自己一直以来都搞错了for()循环的执行顺序。这么简单的问题一直都错了,我也是醉了。for(int i=1;i>0&&a[i]>a[i-1];--i){}//即for(init_statement;condition;expression){}执行顺序为 init->conditon->循环...
分类:
其他好文 时间:
2015-11-05 20:21:47
阅读次数:
152
threads.Lock类 提 供 了 锁 以 保 证 互 斥。 在 临 界 代 码 区 的 两 端 执 行 Lock.acquire()和Lock.release()即可保证同时只有一个线程访问临界代码区,条件变量建立在锁之上,由threads.Condition实现,它是用来保证同步的工具。.....
分类:
编程语言 时间:
2015-10-30 23:07:36
阅读次数:
594
1.在DataTable中执行DataTable.Select("条件")返回DataTable;// // 执行DataTable中的查询返回新的DataTable// // dt 是源数据DataTable// condition 是查询条件DataTable newdt = new DataT...
Kronecker’s lemma gives a condition for convergence of partial sums of realnumbers, and for example can be used in the proof of Kolmogorov’s strong la...
分类:
其他好文 时间:
2015-10-28 08:17:47
阅读次数:
248
转:http://blog.csdn.net/a352193394/article/details/39454157我们在多线程开发中,可能会出现这种情况。就是一个线程需要另外一个线程满足某某条件才能继续运行,或者需要其他线程满足好几个条件才能运行,对于这样的多条件的多线程并发,我们如何控制好各个线...
分类:
编程语言 时间:
2015-10-26 23:50:54
阅读次数:
305
SELECT `column` from `table` where locate(‘keyword‘, `condition`)>0; // LOCATE(substr,str,pos);locate 多一个起始位置的参数
SELECT `column` from `table` where position(‘keyword‘ IN `condition`);
SEL...
分类:
数据库 时间:
2015-10-26 20:58:00
阅读次数:
363
Race Condition(也叫做资源竞争),是多线程编程中比较头疼的问题。特别是Java多线程模型当中,经常会因为多个线程同时访问相同的共享数据,而造成数据的不一致性。为了解决这个问题,通常来说需要加上同步标志“synchronized”,来保证数据的串行访问。但是“synchronized”是...
分类:
编程语言 时间:
2015-10-26 18:19:16
阅读次数:
194
package?jun;
import?java.util.concurrent.ExecutorService;
import?java.util.concurrent.Executors;
import?java.util.concurrent.locks.Condition;
import?java.util.concurrent.locks.Lock;
import?j...
分类:
编程语言 时间:
2015-10-25 18:04:45
阅读次数:
181