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