进程锁
摘要:
from multiprocessing import Process,Lockdef f(l,i): l.acquire() print('hello world',i) l.release()if __name__ == '__main__': lock = Lock() for i in ra 阅读全文
posted @ 2018-09-07 14:09 鹤麟仔 阅读(90) 评论(0) 推荐(0)
posted @ 2018-09-07 14:09 鹤麟仔 阅读(90) 评论(0) 推荐(0)
posted @ 2018-09-07 13:55 鹤麟仔 阅读(141) 评论(0) 推荐(0)
posted @ 2018-09-07 13:44 鹤麟仔 阅读(236) 评论(0) 推荐(0)
posted @ 2018-09-07 11:58 鹤麟仔 阅读(859) 评论(0) 推荐(0)