登录
首页 » Delphi VCL » 实现UP、DOWN原语 产生3个进程: 两个进程模拟需要进入临界区的用户进程。 当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程...

实现UP、DOWN原语 产生3个进程: 两个进程模拟需要进入临界区的用户进程。 当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程...

于 2023-08-26 发布 文件大小:354.78 kB
0 31
下载积分: 2 下载次数: 1

代码说明:

实现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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 没有解压密码,如文件名的内容,我想知道是否是…
    无解压密码,内容如文件名,不知上传后是否仍可用。初学,谢谢。-without extracting passwords, content such as file name, I wonder whether the upload could be used. Beginners, thank you.
    2022-02-02 05:58:17下载
    积分:1
  • network controls applicable to Delphi6
    网络控件适用于Delphi6-network controls applicable to Delphi6
    2022-04-19 11:44:27下载
    积分:1
  • 投名状 脱机登入源码 游戏更新 delphi开发 想搞脱机登入的可以...
    投名状 脱机登入源码 游戏更新 delphi开发 想搞脱机登入的可以-Warlords game offline login update delphi source development can think of off-line login
    2023-03-13 20:15:04下载
    积分:1
  • AAFONT是一款Delphi控件,可以在Delphi编写的窗口上显示平滑的字体,有各种字体效果。...
    AAFONT是一款Delphi控件,可以在Delphi编写的窗口上显示平滑的字体,有各种字体效果。-AAFONT is section Delphi controls, may in the Delphi compilation window demonstrate the smooth typeface, has each kind of typeface effect.
    2023-07-26 06:45:04下载
    积分:1
  • 能够计算复数 (Complex) 的单元 ( 1.0 版,附源码) 。 作者 : Peter Thvrnqvist...
    能够计算复数 (Complex) 的单元 ( 1.0 版,附源码) 。 作者 : Peter Thvrnqvist -to calculate the plural (Complex) Module (Version 1.0, with source). Author : Peter Thvrnqvist
    2022-02-15 00:31:03下载
    积分:1
  • 扫描软件使用前要安装Windows98与插头
    扫描软件,使用前要安装windows98带的那个 imgeing看图工具。是调用它的ocx扫描。包括vb,delphi代码-Scanning software to be installed before use windows98 with the plug-in tools that imgeing. Is called its ocx scan. Including vb, delphi code
    2022-02-20 11:26:06下载
    积分:1
  • 拼音处理模块原理及补充说明: 原理: 根据操作系统拼音输入法的对照表。 提取出简单的单字对照表,用于待开发系统的拼音汉字转换。 主要用...
    拼音处理模块原理及补充说明: 原理: 根据操作系统拼音输入法的对照表。 提取出简单的单字对照表,用于待开发系统的拼音汉字转换。 主要用途:输入拼音头的汉字检索 拼音对照表(简表)结构: 以汉字‘啊’的内码 B0A1(十六进制数) 为文件的零基点,依 次输入汉字对应的拼音头字母。没有汉字的区域用符号 @ 填充。 生成拼音对照表。 如何从系统中提取对照表: 操作系统的 开始->程序->附件->输入法生成器。 在输入法生成器中选择逆转换页。选择打开文件钮,在‘ WINDOWSSYSTEM’ 目录下选择WinPy.mb文件。点逆转换钮。 转换后的文件在‘WINDOWSSYSTEM’目录下,文件名是“WinPY.txt”-phonetic processing module Principle and added : Principle : Operating System Pinyin input method comparison table. Extracted simple words comparison table to be used for the development of Chinese phonetic system conversion. The main purposes : first of the importation of Chinese phonetic alphabet access control (Summary) structure : in Chinese characters" ah "within yards B0A1 (hexadecimal number) to document the zero point, order input Chinese characters corresponding to the first phonetic alphabet. No Chinese regional @ filled with symbols. Generation Pinyin CRT. How to extract from the system control table : the beginning
    2022-01-22 15:05:04下载
    积分:1
  • ACKAGE INSTALL =============== NOTE: if you get an error when installin...
    ACKAGE INSTALL =============== NOTE: if you get an error when installing TVideoGrabber on the component palette, probably that you need to apply a Delphi update pack (see details in the "UPDATE PACKS" chapter below). -ACKAGE INSTALL =============== NOTE : if you get an error when installing TVideoGrabb er on the component palette. probably that you need to apply a Delphi update p disappear (see details in the "UPDATE PACKS" chapter b elow).
    2022-01-25 18:04:58下载
    积分:1
  • fast net vcl delphi 4
    fast net vcl delphi 4
    2022-01-30 21:40:45下载
    积分:1
  • Customer management system is mainly based on customers, based on some basic inf...
    客户管理系统主要是以客户为基础,对客户的一些基本信息及对客户的满意程度进行操作及管理的 运行环境 操作系统:Windows ME/2000/XP 开发工具:Delphi 7.0 数据库:SQL Server 2000 硬件配置:CPU:Pentium 200MHz 以上 内存:32MBRAM以上 硬盘:100MB以上磁盘空间 显示分辨率:最低800×600像素 建议1024×768像素 颜色:256色 -Customer management system is mainly based on customers, based on some basic information about customers and customer satisfaction on the extent of the operation and management of the operating system of the operating environment: Windows ME/2000/XP development tools: Delphi 7.0 Database: SQL Server 2000 hardware configuration : CPU: Pentium 200MHz or above Memory: 32MBRAM over the hard disk: 100MB or more disk space Display Resolution: 800 × 600 pixels minimum recommended 1024 × 768 pixels Color: 256 colors
    2022-03-17 22:33:06下载
    积分:1
  • 696522资源总数
  • 104038会员总数
  • 40今日下载