码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
shell 脚本执行和基础知识
当我们给予shell脚本执行的权限后,就可以测试程序了,假设shell脚本文件为hello.sh放在/root目录下。下面介绍几种在终端执行shell脚本的方法:1.切换到shell脚本所在的目录,执行:[root@localhost home]# cd /root/[root@localhost ...
分类:其他好文   时间:2014-07-18 13:39:57    阅读次数:235
在Android(Java)开发中如何实现类似C语言中的中断程序
在Android开发过程中,有时候会遇到这样的情况,在一个线程中,执行A操作,B操作需要等A操作结束后才进行,因此需要wait,在java中可以如下代码实现 Handler mBlueHandler = new Handler(Looper.getMainLooper()); Task task = new Task(); mBlueHandler...
分类:移动开发   时间:2014-07-18 13:34:17    阅读次数:323
BNU 25593 Prime Time 记忆化dp
题目链接:点击打开链接 题意: 一个游戏由3个人轮流玩 每局游戏由其中一名玩家选择一个数字作为开始 目的:获得最小的得分 对于当前玩家 O ,面对 u 这个数字 则他的操作有: 1、 计分 u +1 ,然后 u++; 2、计分 u / x, 然后 u /= x; 其中x为u的因子且x为素数 然后下一个玩家继续上述操作 3个人各操作一次 为1轮 当一轮结束后,若u==1 则游戏...
分类:其他好文   时间:2014-07-18 13:28:50    阅读次数:200
POJ 1068 Parencodings
Parencodings Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 19409   Accepted: 11718 Description Let S = s1 s2...s2n be a well-formed string of parentheses. S ...
分类:其他好文   时间:2014-07-18 13:27:19    阅读次数:204
JAVA wait(), notify(),sleep详解
在CSDN开了博客后,一直也没在上面发布过文章,直到前一段时间与一位前辈的对话,才发现技术博客的重要,立志要把CSDN的博客建好。但一直没有找到好的开篇的主题,今天再看JAVA线程互斥、同步的时候又有了新的体会,就以他作为开篇吧。 在JAVA中,是没有类似于PV操作、进程互斥等相关的方法的。JAVA...
分类:编程语言   时间:2014-07-18 12:27:12    阅读次数:329
POJ 1159 Palindrome DP
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 51913   Accepted: 17877 Description A palindrome is a symmetrical string, that is, a string read ide...
分类:其他好文   时间:2014-07-18 12:21:25    阅读次数:207
HDU4763 Theme Section 【KMP】
Theme Section Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1114    Accepted Submission(s): 579 Problem Description It's time for...
分类:其他好文   时间:2014-07-18 12:19:26    阅读次数:207
HDU 4324:Triangle LOVE( 拓扑排序 )
Triangle LOVE Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2271    Accepted Submission(s): 946 Problem Description Recen...
分类:其他好文   时间:2014-07-18 12:18:56    阅读次数:202
Uva 679 Dropping Balls
Dropping BallsA number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first v....
分类:其他好文   时间:2014-07-18 12:14:24    阅读次数:202
执行shell脚本遇到错误syntax error: unexpected "then" (expecting "}")
今天执行脚本的时候遇到错误,如下图:root@ApFree:/usr/sbin# ./conntrack_num_graph.sh ./conntrack_num_graph.sh: line 9: syntax error: unexpected "then" (expecting "}")roo...
分类:其他好文   时间:2014-07-18 12:04:31    阅读次数:554
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!