ping多线程 #!/bin/env?python2.7
import?multiprocessing,subprocess
import?os,time
result?=?[]?#定义空列表
a=time.time()
def?run(i):
????IP=‘192.168.1.‘+str(i)
????#num?=?os.system(‘...
分类:
编程语言 时间:
2014-11-02 00:51:00
阅读次数:
188
#include
#include
#include >
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
ofstream ...
分类:
编程语言 时间:
2014-11-01 23:14:37
阅读次数:
277
一般用jetty起服务时,默认端口时80,会经常跟上网的端口发生冲突.所以需要手动改动端口号,下面时如何改变端口号:1.点击Eclipse中Run Configurations,弹出窗口,如下图2.选择左侧java application新建一个application3.建完application后...
分类:
系统相关 时间:
2014-11-01 14:46:56
阅读次数:
228
1yum提示another app is currently holding the yum lock;waiting for it to exit:可能是系统自动升级正在运行,yum在锁定状态中。可以通过强制关掉yum进程:#rm -f /var/run/yum.pid然后就可以使用yum了。
分类:
其他好文 时间:
2014-10-31 23:26:36
阅读次数:
228
有两种方式:
第一种:post给Handler // 开启线程刷新
handler = new Handler();
timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
...
分类:
其他好文 时间:
2014-10-31 22:10:29
阅读次数:
184
#运行用户user www-data;#启动进程,通常设置成和cpu的数量相等worker_processes 1;#全局错误日志及PID文件error_log /var/log/nginx/error.log;pid /var/run/nginx.pid;#工作模式及连接数上限events { u...
分类:
其他好文 时间:
2014-10-31 18:55:15
阅读次数:
191
就是可能是系统自动升级正在运行,所以yum被锁定了。 可以通过执行rm -rf /var/run/yum.pid来强行解除锁定,然后你的yum就可以运行了。references:http://blog.sina.com.cn/s/blog_65f64cc70100qrgk.htmlhttp://gu...
分类:
移动开发 时间:
2014-10-31 10:02:02
阅读次数:
215
今天随便写了一个线程之间相互调度的程序,代码如下:
class First extends Thread
{
public First()
{
start();
}
synchronized public void run()
{
try
{
wait();
}
catch(InterruptedException e)
{
e.printSta...
分类:
编程语言 时间:
2014-10-30 22:38:47
阅读次数:
230
Logging?initialized?using?configuration?in?jar:file:/usr/share/hive/lib/hive-common-0.13.1.jar!/hive-log4j.properties
Exception?in?thread?"main"?java.lang.RuntimeException:?java.lang.Run...
分类:
Web程序 时间:
2014-10-30 21:05:57
阅读次数:
418
打开SharePoint 2013 Management Shell, and then run as administrator.执行如下命令1. 添加wsp和安装Add-SPSolution -LiteralPath "C:\DeployResource\WSP\test.wsp"Install...
分类:
系统相关 时间:
2014-10-30 18:47:56
阅读次数:
207