Python 多进程

import threading
from time import sleep
from msalt_proxy.client import Client
def f(t):
  print t
  cli=Client(t,‘*‘,role=‘server‘)
  cli.sys.ping()
from multiprocessing import Process
if __name__ == ‘__main__‘:
     p = Process(target=f, args=(‘ljx2‘,))
     p.start()
     p.join()
     p1 = Process(target=f, args=(‘ljx1,))
     p1.start()
     p1.join()

  

Python 多进程,布布扣,bubuko.com

Python 多进程

上一篇:《JAVA与模式》之单例模式(转载)


下一篇:struts2与struts1整合,java.lang.InstantiationException, Exception occurred during processing request: null