码迷,mamicode.com
首页 >  
搜索关键字:race condition    ( 2350个结果
jQuery实现div复制
页面源码: + - 效果如下:点击“+”按钮,复制一个“condition”div,点击“-”按钮移除当前div,jQuery实现代码:$(document).ready( function() { //添加选项 $(".add").click(function...
分类:Web程序   时间:2014-07-22 22:58:14    阅读次数:245
unique 验证 criteria 使用
modelarray('code', 'unique', 'criteria' =>array('condition' =>'schoolid=:schoolid','params' => array(':schoolid'=> $this->schoolid)))Controller$model-...
分类:其他好文   时间:2014-07-21 14:21:01    阅读次数:229
POJ3026——Borg Maze(BFS+最小生成树)
Borg MazeDescriptionThe Borg is an immensely powerful race of enhanced humanoids from the delta quadrant of the galaxy. The Borg collective is the ter...
分类:其他好文   时间:2014-07-20 22:28:43    阅读次数:253
杭电 acm 2053 ( Switch Game )
这题思路:一开始有n盏灯,且全部为关闭状态,都记为 0 就是 The initial condition : 0 0 0 0 0 …然后之后进行i操作就是对这些灯以是否能被i整除,进行改变状态,如将 0 改为 1 或 将 1 改为 0正如提醒里的After the first operation :...
分类:其他好文   时间:2014-07-19 21:00:51    阅读次数:198
SQL Tuning 基础概述01 - autotrace的设定
1.autotrace的设定SQL> set autotraceUsage: SET AUTOT[RACE] {OFF | ON | TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]]set autot on--打开autotrace,之后执行的sql,会显示sql执行结...
分类:数据库   时间:2014-07-18 23:36:37    阅读次数:276
shell编程(十四)--- until循环
until循环语法格式:untilCONDITION do statement done 说明: until进入循环的条件是:condition不成立时,就执行循环。 until进入循环的条件正好和while相反,while进入循环的条件是:condition成立时,就进入循环。示例1:while循环[root@Server3Learn]#catwhile.sh #!/bin/b..
分类:其他好文   时间:2014-07-18 13:12:34    阅读次数:196
UVA 11762 - Race to 1(概率)
UVA 11762 - Race to 1 题意:给定一个n,每次随即选择一个n以内的质数,如果不是质因子,就保持不变,如果是的话,就把n除掉该因子,问n变成1的次数的期望值 思路:tot为总的质数,cnt为质因子个数,那么f(n)=(1?cnt/tot)?f(n)+∑f(n/prime)?(1/tot),然后利用记忆化搜索去做即可 代码: #include #inclu...
分类:其他好文   时间:2014-07-17 15:36:46    阅读次数:211
0714-----C++Primer听课笔记----------封装mutex,thread,condition等
1.封装Mutex1.1 封装前先总结一下常用的mutex操作有:pthread_mutex_init(&mutex, NULL ); //初始化一个互斥锁pthread_mutex_destroy(&mutex); //销毁一个互斥锁pthread_mutex_lock(&mutex); //上锁...
分类:编程语言   时间:2014-07-16 17:41:55    阅读次数:242
shell编程(十三) --- while循环
while循环适用于循环次数未知的场景。语法格式: whileCONDITION do statement …… done 说明:while是当CONDITION成立的时候就执行循环,当条件不成立时,退出循环。示例1:计算从1加到100.[root@Server3Learn]#catwhile1.sh #!/bin/bash declare-isum=0 declare-ii=0 while[..
分类:其他好文   时间:2014-07-16 16:42:00    阅读次数:191
Reinstall msdtc on Windows
Reinstall MSDTCThe system reported an unexpected error condition. You can resolve this condition by uninstalling and then reinstalling the Microsoft D...
分类:Windows程序   时间:2014-07-16 16:12:06    阅读次数:303
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!