-
实现UP、DOWN原语
产生3个进程:
两个进程模拟需要进入临界区的用户进程。
当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程...
实现UP、DOWN原语
产生3个进程:
两个进程模拟需要进入临界区的用户进程。
当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程提出申请;
申请返回,表示进入了临界区。在临界区中等待一段随机时间,并显示:“进程x正在临界区…”;
当时间结束,显示:“进程x退出临界区…”,同时向管理进程提出退出申请;
当申请返回,显示:“进程x已退出临界区。”
一个进程作为原语的管理进程,接受其他进程的临界区进入请求:
如果允许进入,则根据DOWN 原语的操作步骤设置相应变量,然后返回;
如果不允许进入,则进入循环等待,直到允许为止;
退出时模拟UP 操作。
进程间通信可以采用信号、消息传递、管道或网络通信方式。
-achieve UP, DOWN original language have three processes : process simulation of two critical needs for access to the users in the process. When the need to access critical areas, revealed : "The process of x request to enter the critical areas ...", and also to the management process applications; applied to return, entered a critical area. In the critical area to wait for a certain period of time random, and that : "the process of x is the critical area ..."; When the time ended, showed : "x withdraw from the process of critical areas ...", and also to withdraw from the process management applications; When applied to ret
- 2023-08-26 18:05:03下载
- 积分:1
-
Delphi 5 入门到精通 配送源码
本文档介绍了如何创建一个简单的编辑器,在RichEdit控件基础上,用Delphi 5。该计划有一个菜单,并实现了许...
Delphi 5 入门到精通 配送源码
本文档介绍了如何创建一个简单的编辑器,在RichEdit控件基础上,用Delphi 5。该计划有一个菜单,并实现了许多功能,包括打开和保存文本文件的完整计划。事实上,我们希望能够要求用户保存任何在打开一个新的修改后的文件,以避免丢失任何变化。听起来像一个专业的应用程序,不是吗?-Mastering Delphi 5 source code distribution of this document describes how to create a simple editor, based on the RichEdit control, using Delphi 5. The plan has a menu, and implements a number of features, including open and save text files a complete plan. In fact, we want to require users to save any modifications to open a new document in order to avoid loss of any changes. It sounds like a professional application, is not it?
- 2023-08-30 00:10:04下载
- 积分:1
-
在处理时更改网格线
changing the grid lines while processing
- 2022-02-12 19:56:07下载
- 积分:1
-
教务管理系统
教务管理系统-Educational Management System
- 2022-01-25 14:44:13下载
- 积分:1
-
effect of a glass button controls. Rar
有玻璃效果的按钮控件.rar-effect of a glass button controls. Rar
- 2022-10-28 04:30:05下载
- 积分:1
-
Guide delphi development delphi 7 Developer Guide
delphi 7开发指南delphi 开发指南-Guide delphi development delphi 7 Developer Guide
- 2022-07-15 21:12:11下载
- 积分:1
-
delphi manual helpfull for all type of coders
delphi manual helpfull for all type of coders
- 2022-08-18 08:51:45下载
- 积分:1
-
Graduate employment system, is very simple, concrete landing in the code inside...
毕业生就业系统,很简单,具体登陆在代码里面又说明-Graduate employment system, is very simple, concrete landing in the code inside another note
- 2022-02-04 03:28:54下载
- 积分:1
-
delphi环境下应用teechart控件,导出图表的源代码
delphi环境下应用teechart控件,导出图表的源代码-delphi application teechart control environment, export the source code of the chart
- 2022-02-03 04:10:47下载
- 积分:1
-
a simple source of VCL
一个简单VCL组件的源码-a simple source of VCL
- 2023-04-30 20:25:02下载
- 积分:1