public class TimeThread extends Thread
{
private long start;
public volatile boolean exit = false;
public TimeThread(long start)
{
this.start = start;
}
public void run()
{
while(!exit...
分类:
编程语言 时间:
2015-05-10 19:00:11
阅读次数:
145
_db = new PDO('mysql:host=localhost;dbname=cms','root','yangfan'); echo '创建了一次数据库链接对象'; } catch (PDOException $e) { exit($e->getMessage()); } }...
分类:
其他好文 时间:
2015-05-10 12:53:23
阅读次数:
133
本文介绍了Linux下的进程的一些概念,并着重讲解了与Linux进程管理相关的重要系统调用wait,waitpid和exec函数族,辅助一些例程说明了它们的特点和使用方法。1.7 背景在前面的文章中,我们已经了解了父进程和子进程的概念,并已经掌握了系统调用exit的用法,但可能很少有人意识到,在一个...
分类:
其他好文 时间:
2015-05-09 23:20:53
阅读次数:
185
1.什么是守护进程
守护进程,也就是通常说的Daemon精灵进程,是linux中的一种服务进程。它的特点是:
*不占用控制终端(后台运行)
*独立于控制终端
×周期性运行
后台运行
守护进程需要独立于任何一个控制终端。实现方法调用是通
过创建子进程来充当守护进程,而父进程退出,这样子进程
就可以在后台运行。
pid=fork();
if(pid>0)
exit...
分类:
系统相关 时间:
2015-05-09 11:51:20
阅读次数:
320
param($folderPath,$shareName,$maxAllowed=5,$description="BYPowerShell!")if(!$folderPath){Write-Host"缺少需要共享的目录!";exit}if(!$shareName){Write-Host"缺少共享名称!";exit}$class="win32_share"$type=0if(!(Test-Path$folderPath)){New-Item-Path$folderpath-It..
分类:
系统相关 时间:
2015-05-08 18:24:12
阅读次数:
152
由于练习机模拟,误删了口令文件,所以不得不重建:
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断
开
...
分类:
其他好文 时间:
2015-05-08 16:41:28
阅读次数:
113
问题描述:
最近使用Android Studio导入Eclipse工程后,常遇到如下的报错:
"...build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1...
分类:
其他好文 时间:
2015-05-08 13:00:22
阅读次数:
1040
this.Close(); //只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出;Application.Exit(); //强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出;Application.ExitT...
Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 153 M RSS (266 MB VSZ) Started:...
分类:
移动开发 时间:
2015-05-07 10:14:09
阅读次数:
133
#!/usr/bin/evnpython
#-*-coding:utf-8-*-
#Author=‘Jun‘
"""
可以同时监控多个进程
"""
importsys
importre
importos
importlinecache
try:
importpsutil
exceptImportErrorase:
printe
sys.exit()
defprocess(processname):
plist=[]
getplist=psutil.process_iter()
..
分类:
系统相关 时间:
2015-05-07 01:06:38
阅读次数:
218