参考地址:http://www.cnblogs.com/vhua/p/idea_1.html?utm_source=tuicool&utm_medium=referral 最...

IP属地:北京
参考地址:http://www.cnblogs.com/vhua/p/idea_1.html?utm_source=tuicool&utm_medium=referral 最...
场景:原版的故事里有五个哲学家(不过我们写的程序可以有N个哲学家),这些哲学家们只做两件事--思考和吃饭,他们思考的时候不需要任何共享资源,但是吃饭的时候就必须使用餐具,而餐...