-
实现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
-
请认真书写上传资料的详细功能、包含内容说明(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明...
请认真书写上传资料的详细功能、包含内容说明(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明-any
- 2022-05-24 05:12:26下载
- 积分:1
-
联系StringGrid1组件的应用,熟悉for的两种用法.
联系StringGrid1组件的应用,熟悉for的两种用法.-application components, familiar for the two alternatives.
- 2022-08-10 23:19:13下载
- 积分:1
-
access system information, and very easy to speak to the system sysi10b.zip
获得系统信息,并且很容易的对系统进行操sysi10b.zip-access system information, and very easy to speak to the system sysi10b.zip
- 2022-02-25 17:05:56下载
- 积分:1
-
网址提取工具。只允许个人的学习与研究…
DELPHI网页URL提取源码工具。只允许个人学习研究-DELPHI Web URL extraction source tools. Allowed only individual study and research
- 2023-08-30 16:35:03下载
- 积分:1
-
不错的报表工具,还可以自己修改
不错的报表工具,还可以自己修改-good reporting tools, they can even change
- 2022-01-26 00:19:55下载
- 积分:1
-
fast net vcl delphi 5
fast net vcl delphi 5
- 2023-06-06 14:20:04下载
- 积分:1
-
delphi开发的一款 导数据工具,支持自定义导数据,
delphi开发的一款 导数据工具,支持自定义导数据,- a
- 2022-03-09 11:17:19下载
- 积分:1
-
向程序发送热键的单元源程序
向程序发送热键的单元源程序-to send hotkey source modules
- 2022-03-20 10:22:11下载
- 积分:1
-
delphi的电梯模拟程序,包含图形模拟,代码及说明
delphi的电梯模拟程序,包含图形模拟,代码及说明-elevator simulation program, including graphics simulation code and explanations
- 2022-07-24 22:21:32下载
- 积分:1