进程锁
摘要:
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 鹤麟仔 阅读(93) 评论(0) 推荐(0)
posted @ 2018-09-07 14:09 鹤麟仔 阅读(93) 评论(0) 推荐(0)
posted @ 2018-09-07 13:55 鹤麟仔 阅读(143) 评论(0) 推荐(0)
posted @ 2018-09-07 13:44 鹤麟仔 阅读(238) 评论(0) 推荐(0)
posted @ 2018-09-07 11:58 鹤麟仔 阅读(862) 评论(0) 推荐(0)