搜索资源列表
philosopher.rar
- 用JAVA做的模拟电梯的程序,是自己做的
63535277productor
- 生产者消费者的JAVA代码,看有没有人需要用,或者大家发个哲学家进餐的代码共同研究!-producers and consumers of Java code, to see no one needs to use You made a philosopher dining code joint research!
死锁—哲学家吃饭问题
- 死锁—哲学家吃饭问题 java写的-Deadlock-food philosopher wrote java
philosopher(1.6)
- 哲学家进餐问题——Java语言实现 哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。 有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。 哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。 如果,很不幸地,每个哲学家拿起
philosopher.rar
- 用JAVA做的模拟电梯的程序,是自己做的, Simulation elevator procedure does which with JAVA, is oneself does
DiningPhilosopherProject
- Dining Philosopher problem solved, with graphical display for easy understanding.
5_DiningPhilosophers_w_G
- java semaphore 实例, 包括java scr ipt, 著名的5个哲学家的案例-5 philosopher java semaphore example
philosopher
- 用Java实现的GUI哲学家问题,OS多线程学习资料-Implemented in Java GUI philosophers problem, OS multithreading learning materials
BUSISUOZHEXUEJIAWENTI
- 不死锁定哲学家问题,即模拟了哲学家的吃面问题,使用Java语言-Die lock philosophers problem, analog philosopher noodles, using the Java language
RIWQG451
- 用java写的哲学家问题源代码,8个哲学家吃饭问题的源代码-Source code written in Java philosopher problem, 8 a philosopher to eat the source of the problem
problem
- 用java写的哲学家问题源代码,8个哲学家吃饭问题的源代码-Source code written in Java philosopher problem, 8 a philosopher to eat the source of the problem
problbe-code
- 用java写的哲学家问题源代码,8个哲学家吃饭问题的源代码-Source code written in Java philosopher problem, 8 a philosopher to eat the source of the problem
wqitten-Java
- 用java写的哲学家问题源代码,8个哲学家吃饭问题的源代码(Source code written in Java philosopher problem, 8 a philosopher to eat the source of the problem)
Mom_Child
- 本文件模拟了哲学家吃饭问题,改成了孩子洗手问题。(This document simulates the philosopher's eating problem and changes the child's handwashing problem.)
多线程调度——哲学家就餐
- 利用JAVA线程,解决哲学家就餐问题。当某一哲学家线程执行取得筷子方法时, 程序会根据该线程的名称来确定该线程需要使用哪两支筷子,并且分辨出哪支筷子编号是奇数,按照先奇后偶的顺序来试图取得这两支筷子。 如果这两支筷子都未被使用(即对应的数组元素值为 false),该哲学家线程即可先后取得这两支筷子进餐,否则会在竞争某支筷子失 败后执行 wait()操作进入 Chopsticks 类实例的等待区, 直到其他的哲学家线程进餐完毕放下筷子时用 notifyAll()将其唤醒。当某一哲学家线程放下筷子时