-
实现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
-
unit Video
interface
uses
Windows, Messages, SysUtils, Classes, Gr...
unit Video
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, stdctrls,
ExtCtrls, avicap, mmsystem, dsgnintf
// Types for event-procedures
type
TCapStatusProc = procedure(Sender: TObject) of object
TCapStatusCallback = procedure(Sender: TObject nID: integer status: string)
of object
TVideoStream = procedure(sender: TObject lpVhdr: PVIDEOHDR) of object
TAudioStream = procedure(sender: TObject lpWHdr: PWAVEHDR) of object
// Property Editor for driver selection
type
TDrivereditor = class(TPropertyEditor)
function GetAttributes: TPropertyAttributes override
procedure GetValues(Proc: TGetStrProc) override
function GetValue: string override
procedure SetValue(const Value: string) override
end -unit Video interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, stdctrls, ExtCtrls, avicap, mmsystem, dsgnintf// Types for event-procedurestype TCapStatusProc = procedure (Sender: TObject)
- 2022-02-21 02:41:49下载
- 积分:1
-
delphi编写的异性纤维监测系统工控平台,包括主界面、控制按钮、和监测模块的功能接口...
delphi编写的异性纤维监测系统工控平台,包括主界面、控制按钮、和监测模块的功能接口-delphi prepared heterosexual Industrial Fiber monitoring system platforms, including the main interface, the control button, and monitoring the function module interface
- 2022-04-23 13:46:29下载
- 积分:1
-
超市批发系统
超市系统,包括进货购入单,退货单,POS连锁超市管理系统(delphi源码控件)(这次上传的是控件,方便大家学习与二次开发,请大家支持正版)POS收银系统.超市进销存管理系统.网络版.MSSQL2000★Delphi源码
- 2022-01-30 15:50:56下载
- 积分:1
-
外籍人税金计算
外籍人根据工资计算税金的公式,2018年的计算公式(about foreign salary set fro 2018 year)
- 2020-06-22 07:40:02下载
- 积分:1
-
ziptv为delphi控件,我公司就是用上它做了前台系统
ziptv为delphi控件,我公司就是用上它做了前台系统-ziptv to control, the company is using it to do a future system
- 2023-07-12 11:15:03下载
- 积分:1
-
Delphi 控制键盘指示灯
Delphi 控制键盘指示灯,控制键盘灯打开或关闭。就像大小写切换时候,小键盘上面的灯会亮起、关闭,比较简单的一个小功能,适合入门学者参考学习。
- 2023-04-11 08:00:04下载
- 积分:1
-
Spy-Net
rat spynet.. um bom rat para aprendizagem
- 2014-11-18 22:08:15下载
- 积分:1
-
CS
- 2022-12-01 22:20:03下载
- 积分:1
-
别人做的,不是我自己做的,做的人是个高手。
别人做的,不是我自己做的,做的人是个高手。-Someone else to do, not my own, and those who do is a master.
- 2022-03-12 12:23:00下载
- 积分:1