02 2019 档案
摘要:1、安装、配置sshd。(如果没有) 2、启动sshd。service sshd start 3、防火墙开启22端口,ssh默认端口。
阅读全文
摘要:from multiprocessing import Process,Queue,Pipeimport osdef test(q,child_conn): print("sub q id:%s in the 线程号 %s"% (id(q),os.getpid())) q.put([ "hello"
阅读全文
摘要:# project:pybuilder # author:slx# datetime:2019/2/20 3:19# software: PyCharmimport threadingimport timeevent =threading.Event()class Boss(threading.Th
阅读全文
摘要:import threadingimport time lock =threading.RLock()class Mythread(threading.Thread): def __init__(self,name): super(Mythread,self).__init__() self.nam
阅读全文
摘要:import threadingimport timelockA = threading.Lock()lockB = threading.Lock()class Mythread(threading.Thread): def __init__(self,name): super(Mythread,s
阅读全文