码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
linux:shell脚本的一些语法
读取文件的第一行并赋值给变量var=`head -1 filename` #`不是单引号,是Esc下方的一个按键,为命令替换符,将命令行执行结果赋给var读取文件的第N行并赋值给变量var=`sed -n Np filename` #把N替换成数字 逐行读取文件while rea...
分类:系统相关   时间:2014-05-23 22:31:08    阅读次数:389
I/O相关的等待事件
1. 查看Oracle数据库是否存在IO相关的竞争等待有下面三种方法:statpack报告的top 5 wait events或者AWR报告中的top 5 timed events。数据库等待事件的sql语句跟踪中主要都是IO相关的等待事件的限制。操作系统工具显示存储数据库文件的存储磁盘有非常高的利...
分类:其他好文   时间:2014-05-23 12:22:52    阅读次数:429
shell 学习
$0就是该bash文件名$?是上一指令的返回值$*所有位置参数的内容:就是调用调用本bash shell的参数。$@基本上与上面相同。只不过是“$*”返回的是一个字符串,字符串中存在多外空格。“$@”返回多个字符串。http://blog.csdn.net/andy572633/article/de...
分类:其他好文   时间:2014-05-23 10:00:20    阅读次数:348
poj 3125 Printer Queue (队列)
?? Printer Queue Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3679   Accepted: 1975 Description The only printer in the computer science students' union is...
分类:其他好文   时间:2014-05-23 08:05:45    阅读次数:273
ZOJ3640 Help Me Escape(概率dp)
p Me Escape Time Limit: 2 Seconds      Memory Limit: 32768 KB Background     If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:其他好文   时间:2014-05-22 12:50:31    阅读次数:280
2014百度之星资格赛—— Xor Sum(01字典树)
Xor Sum Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 132768/132768 K (Java/Others) Total Submission(s): 0    Accepted Submission(s): 0 Problem Description Zeus 和 Prometheus ...
分类:其他好文   时间:2014-05-22 12:13:46    阅读次数:316
XTU1168:Alice and Bob(二维DP)
Problem Description Alice and Bob always love to play games, so does this time.  It is their favorite stone-taken game.  However, this time they does not compete but co-operate to finish this tas...
分类:其他好文   时间:2014-05-22 11:15:07    阅读次数:242
wait
--基本知识--多线程状态:就绪,运行,synchronize阻塞,wait和sleep挂起,结束。wait必须在synchronized内部调用。 调用线程的start方法后线程进入就绪状态,线程调度系统将就绪状态的线程转为运行状态,遇到synchronized语句时,由运行状态转为阻塞,当syn...
分类:其他好文   时间:2014-05-20 12:46:41    阅读次数:229
php实现显示网站运行时间-秒转换年月日时分秒
0, "days" => 0, "hours" => 0, "minutes" => 0, "seconds" => 0, ); if($time >= 31556926){ $value["years"] = floor($time/31556926); $time = ($t...
分类:Web程序   时间:2014-05-20 12:07:09    阅读次数:252
[Ubuntu] Autostart nginx, php-fpm and mysql in Ubuntu14.04
[nginx]Step 1Download the shell scriptwget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginxStep 2chmod +x /etc...
分类:数据库   时间:2014-05-20 09:00:18    阅读次数:401
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!