所属分类:
操作系统开发
开发工具:Visual C++
文件大小:513KB
下载次数:181
上传日期:2005-04-06 09:47:44
说明: 本程序是操作系统中比较典型的线程同步算法中的哲学家进餐问题,为防止死锁,采取了两个条件(筷子空闲)同时满足时再允许进餐的办法来解决。期望与大家一起学习交流!
(the procedure is fairly typical operating system threads synchronization algorithm of the Dining Philosophers, in order to prevent deadlock and take the two conditions (chopsticks idle) meet again allowed to dine at the solutions. We look forward to learning together with the exchange!)