-
哲学家进餐问题是荷兰学者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
-
uml 入门书籍,强烈推荐
uml 入门书籍,强烈推荐
uml 入门书籍,强烈推荐
uml 入门书籍,强烈推荐-Introduction to UML books, strongly recommend UML entry books, strongly recommend
- 2022-07-13 16:08:14下载
- 积分:1
-
心报警系统v 1.0.0。开发
Heart Alarm System v 1.0.0. was developed
as healthcare communications application and
emergency alert/ notification system.
This is "call center" with features:
-maintenance pacient s and doctor s information, with editing and storing abilities
-encryption and security abilities
-viewing, searching and removing ecgs from FTP server(FileZilla only tested fully working) and locally
-getting online emergency alerts
-autoupdate (temporarily disabled in source, see update.txt as example script for explanations)
missed features:
-ecg analysis
-providing dynamically updated offline database
The project was written in C# and compiled under MS VS 2008.
Use sklif.sql MYSQL script to create database.-Heart Alarm System v 1.0.0. was developed
as healthcare communications application and
emergency alert/ notification system.
This is "call center" with features:
-maintenance pacient s and doctor s information, with editing and storing abilities
- 2022-01-25 15:10:26下载
- 积分:1
-
婴儿出生信息登记系统
.按键1可以录入一条婴儿材料,其中婴儿母亲、婴儿性别和护理人员代码不能为空,其他数据如果需要为空请输入 / 。
2.按键2可以查看...
婴儿出生信息登记系统
.按键1可以录入一条婴儿材料,其中婴儿母亲、婴儿性别和护理人员代码不能为空,其他数据如果需要为空请输入 / 。
2.按键2可以查看婴儿材料保存文件里面的所有婴儿材料。
3.按键3可以通过输入婴儿父母姓名、婴儿性别、婴儿出生医院或者婴儿出生日期进行查找。
4.按键4可以显示超低重婴儿材料,超低重婴儿标准是低于1kg。
5.按键5可以通过输入婴儿编号确定需要修改材料的婴儿,然后可以通过输入所需修改的项目,对婴儿材料除婴儿编号以外的数据进行修改。
6.按键6可以通过输入婴儿编号来确定要删除的婴儿材料。
7.按键7查看使用说明。
8.按键8退出婴儿信息登记系统。-birth registration information system. Press a baby can be an input materials, baby mothers, the gender of babies and nursing staff code can not be empty, the other data if needed to enter the air /. 2. Press two babies can view material inside the preservation of all infant materials. 3. 3 keys can be imported baby names of parents, infant sex, Hospital births or birth date you. 4. Press 4 show low weight babies materials, ultra-low weight babies is lower than 1kg standards. 5. Five keys can be imported baby No. identified the need to amend the material babies, then through the importation of necessary changes, in addition to the infant baby No. materials outside the data changes. 6
- 2022-10-28 03:50:03下载
- 积分:1
-
根据离散点生成三角网,并最终生成等值线的文章
根据离散点生成三角网,并最终生成等值线的文章-Triangle Generation Network and the creation of the article isogram
- 2022-03-24 09:32:17下载
- 积分:1
-
这是本人做数据库课程设计时的仓促之作,自我感觉实际应用价值并不大,但可以给学VC和数据库编程的朋友做个范例。...
这是本人做数据库课程设计时的仓促之作,自我感觉实际应用价值并不大,但可以给学VC和数据库编程的朋友做个范例。-This is why I do a database program designed to make the rush of self-feeling of the real value is not large, but can give learning, and database programming VC friends to be a paradigm. See also before doing a lot of the same type of management system, much has been achieved, the student management system now posted in the hope that can help a friend in need. System shortcomings are certainly many, and also requests master the exhibitions, please contact with me. I added in the system directly through the SQL statements to modify the table of the background features, very controversial, but also invited a friend Zhijiao practical development experience.
- 2023-01-26 10:25:04下载
- 积分:1
-
一套电子政务的数据库设计说明书,有doc和pdm,可以直接建库...
一套电子政务的数据库设计说明书,有doc和pdm,可以直接建库-A database of e-government design specifications have doc and pdm, can be directly built library
- 2023-07-06 17:25:03下载
- 积分:1
-
C# books in English Manual Language : English books categories : program design...
C#英文手册
书籍语言: 英文
书籍类型: 程序设计
授权方式: 免费软件
书籍大小: 800 KB
-C# books in English Manual Language : English books categories : program design license : free software books Size : 800 KB
- 2022-02-18 13:49:05下载
- 积分:1
-
一个酒店的源码与设计文档,很不错的一个
一个酒店的源码与设计文档,很不错的一个-A hotel with the design of the source document, a very good
- 2022-03-14 11:46:17下载
- 积分:1
-
一本介绍LINUX操作系统的驱动程序的书籍,希望对大家有帮助
一本介绍LINUX操作系统的驱动程序的书籍,希望对大家有帮助-a Linux operating system on the driver"s books, we hope to help
- 2022-03-04 16:59:50下载
- 积分:1