![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构、算法
flying_fish_li
堃,跟我大声的读,kun
展开
-
KMP算法c++实现
void getnext(const string& str,vector<int>&next){ if(str.empty()) return ; next[0]=-1; int len=str.length(); int k=-1; int j=0; while(j<len-1) {...原创 2018-08-07 16:05:44 · 150 阅读 · 0 评论 -
读写锁
读写锁读写锁主要是和数据库的几种隔离方式向对应Serializable 只要有事务对某个表进行操作,其他事务只能等待,采取锁表的方式 Repeatable read 采用读写锁,只要有事务在读,就不允许其他事务进行写操作(对应读优先) Read commit 采用读写锁,只要有事务在写,就不允许其他事物进行读操作(对应写优先) Read uncommitte...原创 2018-08-07 16:36:14 · 246 阅读 · 0 评论