-
实现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查询指定控件高度宽度等信息的源码
delphi查询指定控件高度宽度等信息的源码-delphi inquiries on the specified control information such as height width of the source
- 2023-04-02 12:20:03下载
- 积分:1
-
Color palette selector for windows delphi with source open source
Color palette selector for windows delphi with source open source
- 2022-06-13 14:25:02下载
- 积分:1
-
Delphi run
Delphi运行时设计,完全开源,包括Demo,RttiDesign.pas文件用于控制单元。
- 2022-03-03 04:15:56下载
- 积分:1
-
新技术文件系统工具与专家!
New Technology File System Tools with Delphi Source!
- 2022-04-10 14:56:52下载
- 积分:1
-
一个简单的delphi实现查询功能的数据表源程序,功能简单
一个简单的delphi实现查询功能的数据表源程序,功能简单-Delphi realize a simple query source data tables, functions simple
- 2022-02-02 01:38:23下载
- 积分:1
-
本软件是基于delphi基础上的一个小型的仓库管理系统。
本软件是基于delphi基础上的一个小型的仓库管理系统。-The software is a small stroehouse manage system based on delphi.
- 2022-06-21 11:58:41下载
- 积分:1
-
rsa 加密
rsa åŠ å¯†-rsa encryption
- 2022-05-31 22:49:02下载
- 积分:1
-
Delphi XML & XPATH源代码
Delphi XML & XPATH源代码-Delphi XML
- 2022-05-10 19:39:58下载
- 积分:1
-
打印源代码一款很好的运达因控制的源代码可以下载下来
打印源代码一款很好的运达因控制的源代码可以下载下来-A good source of delivery for controlling the source code can be downloaded from a look at
- 2022-05-20 22:52:12下载
- 积分:1