-
哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地...
哲学家进餐问题是荷兰学者Dijkstra 提出的经典问题之一,它是一个信号量机制问题的应用,在操作系统文化史上具有非常重要的地位。对该问题的剖析有助于学生深刻地理解计算机系统中的资源共享、进程同步、死锁等问题,并能熟练地应用信号量来解决生活中的控制流程,即将生活中的控制流程用形式化的方式表达出来。
假设有5个哲学家,他们花费一生中的时光思考和吃饭。这些哲学家共用一个圆桌,每个哲学家都有一把椅子。在桌子中央是一碗通心面,在桌子上放着5只筷子。(如图所示)当一个哲学家思考时,他与其他同事不交互。时而,哲学家会感到饥饿,并试图拿起与他相近的两只筷子(他与邻近左、右之间的筷子)。一个哲学家一次只能拿起一只筷子。显然,他不能从其他哲学家手里拿走筷子。当一个饥饿的哲学家同时有两只筷子时,他就不能不用释放他的筷子而自己吃了。当吃完后,他会放下两只筷子,并再次开始思考。
规定奇数号哲学家先拿他左边的筷子,然后再去拿右边的筷子;而偶数号哲学家则相反。按此规定,将是1、 2号哲学家竞争1号筷子;3、4号哲学家竞争3号筷子。即五位哲学家都先竞争奇数号筷子,获得后,再去竞争偶数号筷子,最后总会有一位哲学家能获得两只筷子而进餐。
-dining philosophers problem is the Netherlands scholars Dijkstra"s one of the classic, It is a signal to the mechanism of application, the operating system in the history of culture has a very important position. Analysis of the problem to help students understand deeply the computer system resource sharing, process synchronization, and other issues Deadlock, skilled and can be applied to solve the signal volume life of the control flow, about the life of the control flow w
- 2022-02-12 04:28:55下载
- 积分:1
-
鼎鼎大名的反rootkit工具RAIDE的官方设计文档!
鼎鼎大名的反rootkit工具RAIDE的官方设计文档!-Anti-rootkit tools鼎鼎大名raide the official design document!
- 2022-01-25 18:49:51下载
- 积分:1
-
软考程序设计用书,设用于程序员考试与软件设计师的考试
软考程序设计用书,设用于程序员考试与软件设计师的考试-Soft-test program design books, set up for programmers and software designers test test
- 2022-01-26 02:08:06下载
- 积分:1
-
摘要本问介绍如何建立基于adsl的接入技术和asp的编程技术,在以windwos xp+iis+sql为服务器,建立一个简单的个人网站bbs。简单实现参观者能够...
摘要本问介绍如何建立基于adsl的接入技术和asp的编程技术,在以windwos xp+iis+sql为服务器,建立一个简单的个人网站bbs。简单实现参观者能够自由注册成为论坛用户,能够畅所欲言,实现信息共享从而达到交流的目的-Abstract asked how adsl-based access technologies and asp programming technology, in the windwos xp iis sql server to establish a simple personal website bulletin board. Simple visitors can freely registered as a user forum to speak freely and realize the sharing of information so as to achieve the purpose of the exchange
- 2022-02-02 22:39:03下载
- 积分:1
-
PC Information
本项目采用PHP语言和数据库MySQL进行开发。
- 2022-06-19 06:13:34下载
- 积分:1
-
R 树, 存取方式的当中最普遍的的用长方形, 是根据区域的启发式优化围绕的长方形在各个内在结点通过运行在一张规范化的试验平台下高度变化的数据, 询问和操作众多的...
R 树, 存取方式的当中最普遍的的用长方形, 是根据区域的启发式优化围绕的长方形在各个内在结点通过运行在一张规范化的试验平台下高度变化的数据, 询问和操作众多的实验, 我们能设计合并联合的优化的R* 树区域, 各个附寄的长方形边际和交叠在目录使用我们规范化的试验床在详尽表现比较,它结果R* 树清楚地胜过现有的R 树变形Guttman’s线性和二次方R 树和R 树的格林变形,R* 树的这优势举行为不同的型询问和操作, 譬如地图覆盖物。 为两个长方形和多维点在所有实验从一个实用观点R* 树是非常有吸引力的由于以下二个原因1 它高效率地支持点和空间数据同时和2 它实施费用比那少许高级其它R 树。-R tree, which forms of access to the most common use of a rectangular shape, which is based on heuristic optimization rectangular inherent in all nodes running on a standardized test platform height data, inquiries and the operation of many experiments, we can design the optimal merging of the joint R* Tree region, judging from the various and overlapping rectangular marginal in the directory using our standardized test bed in a detailed performance comparisons, and it results R* tree clearly better than the existing R-tree deformation Guttman"s linear and quadratic R-tree and R Green Tree deformation, R* Tree of this advantage at different type of inquiry and operation, such as maps cove
- 2022-05-24 22:46:05下载
- 积分:1
-
uCOS
uCOS-II内核源代码分析。对于学习嵌入式开发人员,很有参考价值。-uCOS-II core code analysis
- 2023-06-12 09:25:04下载
- 积分:1
-
software testing technology for software development costs by 60%. It can be see...
软件测试技术占软件的开发成本的60%。因此可以看出软件测试对软件工程的重要影响。-software testing technology for software development costs by 60%. It can be seen on software testing software engineering major impact.
- 2023-09-09 04:40:03下载
- 积分:1
-
of C/C language to acquire a deeper understanding of the coming of C/C programmi...
对C/C++语言想深入了解的进来,对C/C++ 编程有一定的帮助,建议下载-of C/C language to acquire a deeper understanding of the coming of C/C programming is certainly helpful, the proposed Download
- 2022-04-27 14:25:17下载
- 积分:1
-
MISRA (The Motor Industry Software Reliability Association 汽车工业软件可靠性联会) 是位于英国的一个...
MISRA (The Motor Industry Software Reliability Association 汽车工业软件可靠性联会) 是位于英国的一个跨国汽车工业协会,其成员包括了大部分欧美汽车生产商。其核心使命是为汽车工业提供服务和协助,帮助厂方开发安全的、高可靠性的嵌入式软件。这个组织最出名的成果是所谓的MISRA C Coding Standard,这一标准中包括了127条C语言编码标准,通常认为,如果能够完全遵守这些标准,则你的C代码是易读、可靠、可移植和易于维护的。最近很多嵌入式开发者都以MISRA C来衡量自己的编码风格,比如著名的uC/OS-II就得意地宣称自己99%遵守MISRA标准。而《嵌入式开发杂志》也专门载文号召大家学习。编码规范通常是一个公司自定的“土政策”,居然有人去做标准,而且还得到广泛的认可,这不禁引起我强烈的兴趣。可惜这份标准的文本需要花钱去买,而且短短几十页,要价非常昂贵。MISRA在网上公布了一些文档,其中有关于MISRA C Coding Standard的Clarification报告,从中间你可以大致猜到MISRA标准本身是什么。-MISRA (Motor Industry Software The Reliab ility Association Automobile Industry Software Reliability Association) is a UK-based multinational car Industry Association, whose members include most of Europe and the US car manufacturers. Its core mission is to the automobile industry to provide services and assistance to help the factory to develop secure, high-reliability embedded software. The organization"s most famous achievement is the so-called MISRA C Coding Standard, this standard includ
- 2022-01-28 00:32:50下载
- 积分:1