2013年1月16日

python 多线程查找进程pid

摘要: import os,time,threadingclass Message(threading.Thread): def __init__(self,name): threading.Thread.__init__(self) self.name = name def printIt(self): # print 'checking process is : ' + self.num cmd = 'ps -C ' + self.name + ' -o pid,cmd' ret=os.popen(cmd).... 阅读全文

posted @ 2013-01-16 14:49 wangbokun 阅读(859) 评论(0) 推荐(0)

导航