搜索资源列表
63535277productor
- 生产者消费者的JAVA代码,看有没有人需要用,或者大家发个哲学家进餐的代码共同研究!-producers and consumers of Java code, to see no one needs to use You made a philosopher dining code joint research!
哲学家就餐问题分析
- 该问题与以前经典的五个哲学家五根筷子不同,这次是每个哲学家身边均有一副刀叉,总的资源是充足的-problems with the previous five classic philosophers five different chopsticks, this is the philosopher of each side have a knife and fork, the total resources are adequate
死锁—哲学家吃饭问题
- 死锁—哲学家吃饭问题 java写的-Deadlock-food philosopher wrote java
philosopher(1.6)
- 哲学家进餐问题——Java语言实现 哲学家进餐问题是一个多线程运用的经典例子,涉及到线程同步/互斥,临界区访问问题以及一个避免死锁的解决方法。 有五个哲学家绕着圆桌坐,每个哲学家面前有一盘面,两人之间有一支筷子,这样每个哲学家左右各有一支筷子。 哲学家有2个状态,思考或者拿起筷子吃饭。如果哲学家拿到一只筷子,不能吃饭,直到拿到2只才能吃饭,并且一次只能拿起身边的一支筷子。一旦拿起便不会放下筷子直到把饭吃完,此时才把这双筷子放回原处。 如果,很不幸地,每个哲学家拿起
Dining_Philosophers
- 英国帝国理工学院电脑系多线程课程教学材料之八 ---- 哲学家晚餐范例-Five philosophers sit around a circular table. Each philosopher spends his life alternatively thinking and eating. In the centre of the table is a large plate of spaghetti. A philosopher needs two forks to eat a he
DiningPhilosopherProject
- Dining Philosopher problem solved, with graphical display for easy understanding.
EX-6
- Code to implement the right-left dining philosopher algorithm in distributed systems-Code to implement the right-left dining philosopher algorithm in distributed systems
philosophy
- 哲学家就餐问题,五个哲学家只有五只筷子,保证所有哲学家不饿死的情况下实现就餐问题!-about the philosopher‘s dinner
5_DiningPhilosophers_w_G
- java semaphore 实例, 包括java scr ipt, 著名的5个哲学家的案例-5 philosopher java semaphore example
philosophers
- 哲学家进餐例子。 哲学家问题的大意是:5个哲学家围坐在一张圆桌周围,每个哲学家面 前有一碟通心面,要使用筷子才能进餐。相邻两个碟子之间有一根筷子。哲 学家包含三种状态:吃饭、思考和挨饿。当一个哲学家觉得饿时,他才试 图分两次去取他左边和右边的筷子就餐,吃完以后放下筷子继续思考。-The dining philosophers example. Philosophers problem to the effect that: five philosophers sitting arou
philosopher
- 用Java实现的GUI哲学家问题,OS多线程学习资料-Implemented in Java GUI philosophers problem, OS multithreading learning materials
philosopher
- 哲学家算法,功能基本全实现,有精美界面,你值得拥有-Philosophers algorithm, the basic functions of full realization, beautiful interface, you deserve! !
11331237_majun
- 解决哲学家就餐问题避免死锁使每个哲学家都不会被饿死-Solution to the dining philosophers problem to avoid deadlock so that each philosopher will not be starved to death
philosopher
- 哲学家就餐问题是在计算机科学中的一个经典问题,用来演示在并行计算中多线程同步(Synchronization)时产生的问题。-Dining Philosophers problem is a classic computer science problem, used to demonstrate multi-thread synchronization in parallel computing (Synchronization) problems arising.
070806110015
- 操作系统课程设计 -哲学家问题-Operating system course design- the philosopher
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()将其唤醒。当某一哲学家线程放下筷子时