搜索资源列表
p_eating
- 本程序是模拟哲学家进餐这个经典的操作系统的问题-the simulation procedure is the classic philosophers dining operating system problems
zhexuejiajincan
- 计算机操作系统原理与实现中的重要实验,关于哲学家进餐的问题-computer operating system Theory and the important experiments on the dining philosophers problem
dinning
- 哲学家进餐的问题,用程序模拟实现,解释死锁的产生、解除以及预防-dining philosophers problem, simulation procedures, explained Deadlock in lifting and prevention
aaa
- 哲学家就餐问题是由Dijkatra提出并解决的典型同步问题。该问题描述的是有五个哲学家共用一张圆桌,分别坐在周围的五张椅子上,圆桌上有五个碗和五只筷子,他们的生活方式是交替的进行思考和就餐。平时,一个哲学家进行思考,饥饿时便试图取用其左右最靠近他的筷子,只有在他拿到两只筷子时才能进餐。进餐完,放下筷子继续思考。
eating
- 模拟哲学家进餐的同步问题,实现一个既没有两邻座同时吃饭,又没有人饿死(永远拿不到一双筷子)的算法
threadphilosopher
- 利用线程方案实现实现哲学家问题.设置五个信号量代表五把叉子,初使值均为1,表示5把叉子均可以取,设置五个线程代表5个哲学家,其值分别为0~4,规定奇数号的哲学家先拿起他左边的叉子,然后再去拿他右边的叉子 而偶数号的哲学家则相反.按此规定,将是1,2号哲学家竞争1号叉子,3,4号哲学家竞争3号叉子.即五个哲学家都竞争奇数号叉子,获得后,再去竞争偶数号叉子,最后总会有一个哲学家能获得两支叉子而进餐。而申请不到的哲学家进入阻塞等待队列,根FI
DineRun
- 哲学家吃饭问题 当五个人都拿到左手边筷子,都等待拿右手边筷子,则因为谁都不能放下手中的筷子,这样就进入无止境的等待,构成死锁 * 解决方法1:奇数号先拿左边的筷子,偶数号先拿右边的筷子,即相邻两个人先拿其中间夹的筷子,使这个筷子成为临界资源; * 解决方法2:两边的筷子都空闲时,再拿筷子,if(chopstick.flag(n)==false&&chopstick.flag(n 5)==false); * 解决方
Dzhexuejiai
- 哲学家进餐问题,实现多进程间的互互斥访问,进程间的竞争可直接使用。 -The dining philosophers problem, to achieve the mutual exclusive access to the multi-process, the competition between processes can be used directly.
Dphilosopheri
- 哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助助于学生深刻地理解计算机系统中的资源共享、进程同步、死锁等问题,并能熟练地应用信号量来解决生活中的控制流程,即将生活中的控制流程用形式化的方式表达出来。 -The dining philosophers problem is one of the Dutch scholar Dijkst
Question3
- 图形化界面的哲学家进餐问题,图 形化界面的哲学家进餐问题-Graphical interface dining philosophers problem, dining philosophers problem graphical interface, a graphical interface dining philosophers problem
Multitasking_Programming_On_VxWorks
- 通过一个经典的多任务同步哲学家进餐问题。介绍了VxWorks 下的多任务程序 设计和任务间通信机制,并给出了运行的结果。-Multi-task synchronization through a classic dining philosophers problem. Under VxWorks multitasking programming and inter-task communication mechanisms, and
Philosophy_Eating
- 进餐问题 计算机操作系统中的哲学家进餐问题-Dining problem
zhexuejiajiucan
- 操作系统课程设计——哲学家进餐问题,进程的3种关系-Courses on operating system design- dining philosophers problem, the process relationship
dinning
- 有关操作系统的经典问题,哲学家进餐问题。利用多线程模拟了进餐,并讨论了死锁问题。-For the classic problem of the operating system, the dining philosophers problem. Using multi-thread simulation meal, and discussed the deadlock problem.
Eating
- 模拟哲学家进餐问题,利用信号量、互斥锁等进行线程间的同步。-Analog dining philosophers problem, the use of semaphores, mutexes, etc. synchronization between threads.
shiyan2
- 哲学家进餐问题 #include<stdio.h> #include<semaphore.h> #include<pthread.h> //宏定义信号量个数为5,宏定义0表示思考,宏定义1表示饿,宏定义2表示吃,宏定义(ph_num+4) N表示左,宏定义(ph_num+1) N表示右 #define N 5 #define THINKING 0 #define H
CPPzhexuejia
- 这是采用C++的语言编写的程序,实现哲学家进餐问题的解决的方法-This is the use of written procedures C++ achieve settlement method Dining Philosophers Problem
zxj_jincan
- 哲学家进餐问题 visual stidio平台 C++网络编程,socket-visual stdio,C++,server,client,socket
mhepsticks__synchronization
- 经典同步问题中的哲学家进餐问题 材料:哲学家5个,筷子5只 进餐完放下筷子,-Classical philosophers dining problem in synchronization problems materials: philosophers 5, 5 only dine out put down the chopsticks,
多线程调度——哲学家就餐
- 利用JAVA线程,解决哲学家就餐问题。当某一哲学家线程执行取得筷子方法时, 程序会根据该线程的名称来确定该线程需要使用哪两支筷子,并且分辨出哪支筷子编号是奇数,按照先奇后偶的顺序来试图取得这两支筷子。 如果这两支筷子都未被使用(即对应的数组元素值为 false),该哲学家线程即可先后取得这两支筷子进餐,否则会在竞争某支筷子失 败后执行 wait()操作进入 Chopsticks 类实例的等待区, 直到其他的哲学家线程进餐完毕放下筷子时用