摘要: # from multiprocessing import Process,Queue,JoinableQueue # import time,random # # # 生产者 # def make_hot_dog(q): # for i in range(1,6): # time.sleep(ra 阅读全文
posted @ 2019-03-07 15:32 777ijBGly- 阅读(245) 评论(0) 推荐(0) 编辑
摘要: # from multiprocessing import Process,Lock # import time,random # # def task1(lock): # lock.acquire() # print('惺惺相惜想') # time.sleep(random.randint(1,2 阅读全文
posted @ 2019-03-07 14:51 777ijBGly- 阅读(174) 评论(0) 推荐(0) 编辑