-
实现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
-
大M单纯性形法源程序,采用DELPHI开发,程序结果不错
大M单纯性形法源程序,采用DELPHI开发,程序结果不错-Big M method of simple source code, using DELPHI development, good results of the proceedings
- 2023-09-06 19:20:03下载
- 积分:1
-
Online to find the source of the Delphi development, work together to share it!
在网上找的Delphi开发的源程序,一起共享吧!-Online to find the source of the Delphi development, work together to share it!
- 2022-03-19 01:09:19下载
- 积分:1
-
演示delphi在运行环境中自动生成控件的例子
演示delphi在运行环境中自动生成控件的例子-demonstration environment for the operation of the Automatic Generation Control example
- 2023-03-18 10:00:03下载
- 积分:1
-
contains a high
包含一个高速打印引擎和一个可视化报表设计控件(Rave), 拥有40个控件,超过500个方法,属性,功能非常强大!-contains a high-speed print engine and a visual report design control (Rave), owned 40 controls, over 500 methods, attributes, which is very powerful!
- 2022-05-30 22:44:11下载
- 积分:1
-
二次开发虎克对战平台
二次开发虎克对战平台
二次开发虎克对战平台
二次开发虎克对战平台-Secondary development of the secondary development of Hooke Hooke war platform against platform
- 2022-07-06 21:04:06下载
- 积分:1
-
GprsSDK的开发源代码,DELPHI写的
GprsSDK的开发源代码,DELPHI写的-GprsSDK the development of source code, DELPHI written
- 2022-06-19 22:39:39下载
- 积分:1
-
快网VCL Delphi 5
fast net vcl Delphi 5
- 2022-05-27 01:41:19下载
- 积分:1
-
delphi的汉字字库显示代码, 在Delphi6环境下编译通过
delphi的汉字字库显示代码, 在Delphi6环境下编译通过-delphi code of Chinese characters displayed in the compiler environment through Delphi6
- 2023-06-17 08:10:03下载
- 积分:1
-
这个文件示例展示如何在Delphi使用UDP聊天clintserver
this file sample in delphi show how to use udp for chating clintserver
- 2022-04-10 12:26:03下载
- 积分:1