-
哲学家进餐问题是荷兰学者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 wi
- 2022-03-25 04:58:02下载
- 积分:1
-
DTSD1945
DTSD1945-2 三相电子式多功能电能表使用说明书
- 2023-01-26 08:55:04下载
- 积分:1
-
用于Silabs si470x家庭FM无线电接收机的文档。
Documentation for Silabs Si470x family FM Radio Receivers.
- 2022-03-22 15:00:55下载
- 积分:1
-
Wince encountered in the design bit by bit! Helpful
在wince设计中遇到的点滴!对新人来说很有帮助的!-Wince encountered in the design bit by bit! Helpful
- 2022-05-19 00:17:22下载
- 积分:1
-
里面有很多具体的实际例子,对学习java的初学者来说能起到很好的实践作用...
里面有很多具体的实际例子,对学习java的初学者来说能起到很好的实践作用-there are many specific examples of the learning java newcomer can play a very good role in the practice
- 2022-05-18 07:41:40下载
- 积分:1
-
高质量的程序设计指导,要想成为程序设计高手,应该看看这些东东,C++方面的,包括文档的编写规格,代码的质量等等,是不可多得的好东西啊...
高质量的程序设计指导,要想成为程序设计高手,应该看看这些东东,C++方面的,包括文档的编写规格,代码的质量等等,是不可多得的好东西啊-High-quality programming guide, program design in order to become a master, we should look at these Dongdong, C++ Area, including the preparation of the document specifications, code quality, etc., is a rare good thing ah
- 2022-09-30 21:50:03下载
- 积分:1
-
(1).编辑功能:对学生的各种信息进行编辑,和相关的管理。
(2)浏览功能:对学生的各种信息进行管理。
(3)查找功能:查找特定学生的信息.。
(4...
(1).编辑功能:对学生的各种信息进行编辑,和相关的管理。
(2)浏览功能:对学生的各种信息进行管理。
(3)查找功能:查找特定学生的信息.。
(4)删除功能:删除特定学生的信息。
(5)插入功能:添加一条记录,并插到某一条记录之后。
(6)统计功能:如,求某学生的总分,求各学科的平均成绩。
(7)打印功能:对学生的各种信息进行打印输出。
-(1). Editing functions : the right of students compile that information and related management. (2) View functions : to students of information management. (3) search function : Search specific student information. . (4) Delete function : to delete specific student information. (5) Insert function : Add a record, and a record of a stabbing after. (6) Statistical functions : for example, for a total score of the students, for various disciplines average scores. (7) Print functions : the right of students to print various kinds of information output.
- 2023-01-24 03:45:04下载
- 积分:1
-
软件规格说明(GB8567――88) 包括开发进度月报,模块开发卷宗,软件需求说明书,数据库设计说明书,数据要求说明书, 详细设计说明书,项目开发计划,项目开发...
软件规格说明(GB8567――88) 包括开发进度月报,模块开发卷宗,软件需求说明书,数据库设计说明书,数据要求说明书, 详细设计说明书,项目开发计划,项目开发总结报告,用户手册等-software specifications (GB8567-- 88), including the development progress monthly, module development files, software requirements specification, design specification database, data requirements specification, the detailed design specification, the project development plan, the final report of project development, user manuals, etc.
- 2023-02-06 05:55:04下载
- 积分:1
-
Wordware
Wordware - Memory Management, Algorithms and Implementation in C & C++.chm-Wordware- Memory Management, Algorithms and Implementation in C & C++.chm
- 2022-06-27 21:53:14下载
- 积分:1
-
以ASAP光学模拟软件和显示器背光模式结构设计
利用ASAP光学仿真软件设计和构建显示背光模块,并测试其可行性
- 2022-03-07 07:49:24下载
- 积分:1