码迷,mamicode.com
首页 >  
搜索关键字:enq tx - row lock co    ( 21443个结果
运行yum系统提示Existing lock /var/run/yum.pid: another copy is running as pid
运行yum系统提示Existing lock /var/run/yum.pid: another copy is running as pid...
分类:其他好文   时间:2015-03-06 10:04:02    阅读次数:132
Factorial Trailing Zeroes
求一个整数n的阶乘后面有几个0 思路:0肯定是由5*2=10得到,2的个数肯定远大于5,所以只要数一下n的阶乘的因式分解里有几个5即可。 class Solution {public: int trailingZeroes(int n) { int count = 0; while (n) { co...
分类:其他好文   时间:2015-03-05 22:18:51    阅读次数:132
我的STL之旅 MyStack
#include#include#include#include using namespace std;/* push(int item) int pop() top() 返回stact中的下一个元素 s.top()=12; 设置顶层元素 返回对其引用 */co...
分类:其他好文   时间:2015-03-05 20:48:07    阅读次数:141
CVS 快速入门
日常使用1,从库里 checkout 项目到本地cvs co project_name2,检查本地与库里的不同cvs -q -n up -d3,将库里的改动应用到本地cvs -q up -d4,添加新的文件夹/文件cvs add filename5,将本地的改动上传到库里cvs ci -m "co....
分类:其他好文   时间:2015-03-05 19:12:34    阅读次数:133
centos6.5 64位 yum install nginx的默认安装路径
yum install nginx网站文件存放默认目录/usr/share/nginx/html网站默认站点配置/etc/nginx/conf.d/default.conf自定义Nginx站点配置文件存放目录/etc/nginx/conf.d/Nginx全局配置/etc/nginx/nginx.co...
分类:其他好文   时间:2015-03-05 19:04:09    阅读次数:163
dubbo扩展
dubbo源码版本:2.5.4经统计,dubbo一共有31个扩展,如下:------------------------------------------------------META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Co...
分类:其他好文   时间:2015-03-05 16:48:47    阅读次数:356
Lock和sycnoized性能对比
现在测试不同线程下的表现(时间单位ms): ? 1 10 50 100 500 1000 5000 synchronized 542 4894 4667 4700 5151 5156 5178 lock 838 1211 821 847 851 1211 1241 可以看到,在多线程环境并存在大量竞争的情况下...
分类:其他好文   时间:2015-03-05 15:02:49    阅读次数:278
XML命名空间
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:aop="http://www.springframework.org/schema/aop"  xmlns:tx="http://www.springframework.org/schema/tx"  xmlns:sc="http://www.springframewo...
分类:其他好文   时间:2015-03-05 14:54:33    阅读次数:108
responsive menu
https://css-tricks.com/triangle-breadcrumbs/http://exisweb.net/incredibly-useful-list-of-responsive-navigation-and-menu-patternshttp://cssmenumaker.co...
分类:其他好文   时间:2015-03-05 14:38:58    阅读次数:172
phpStudy 2014的Apache虚拟主机配置
安装phpStudy直接百度下载,傻瓜式安装很简单,一直点击下一步即可,中途根据个人爱好设置WWW目录,我的设置在D盘根目录里。打开虚拟主机配置,打开D:\phpStudy\Apache\conf下的 httpd.conf文件去掉#Include conf/extra/httpd-vhosts.co...
分类:Web程序   时间:2015-03-05 14:38:54    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!