知道代码(持续更新)
摘要:
1.科学家吃面代码 此程序因互斥锁会产生死锁现象 from threading import Thread, Lock import time noodle_lock = Lock() fork_lock = Lock() def eat1(name): noodle_lock.acquire() 阅读全文
posted @ 2018-07-30 22:15 zhaosijia 阅读(135) 评论(0) 推荐(0) 编辑