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

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

于 2023-08-26 发布 文件大小:354.78 kB
0 183
下载积分: 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 个回复

  • this is my first program in delphi
    this is my first program in delphi
    2022-07-15 10:01:00下载
    积分:1
  • 源代码和实例数据库
    Delphi source code and examples database
    2022-07-17 02:46:01下载
    积分:1
  • 一套DELPHI北京公交车查询系统源码
    一套DELPHI北京公交车查询系统源码-a Beijing bus Inquiry System source
    2022-06-15 04:35:27下载
    积分:1
  • The Delphi2009 create OCX, while achieving and JavaScript to pass parameters bet...
    在Delphi2009中创建OCX,同时实现与JavaScript之间传递参数的功能。-The Delphi2009 create OCX, while achieving and JavaScript to pass parameters between functions.
    2022-08-25 03:46:40下载
    积分:1
  • 公历和农历农历转换与月球的很好…
    阳历和阴历的转换非常好用,阴历在每个转换库中使用Pascal
    2022-02-02 11:31:58下载
    积分:1
  • Delphi Developer s Guide to OpenGL by Jon Q. Jacobs The Delphi Developer s G...
    Delphi Developer s Guide to OpenGL by Jon Q. Jacobs The Delphi Developer s Guide to OpenGL gives an outline of OpenGL--once a proprietary graphics library that used to reside only on expensive workstations--and explains its capabilities, including how to use it inside Borland s popular programming language, Delphi.
    2022-01-26 05:48:38下载
    积分:1
  • 查询等级考试成绩的源码,使用报表类组建
    查询等级考试成绩的源码,使用报表类组建-grading test scores for the source, the use of such statements form
    2022-05-25 05:14:42下载
    积分:1
  • 这是一个间歇的小唾弃,希望大家希望,以后大家多学习,多多交流共同进步...
    这是一个间歇的小唾弃,希望大家希望,以后大家多学习,多多交流共同进步-This is an intermittent small cast aside, I hope everyone hopes that after the U.S. and more learning, more exchange of common progress
    2023-03-06 05:45:04下载
    积分:1
  • 从事编程的时间已经有几年了,从在学校的小打小闹的编程到现在的在专 门的从事电脑编程的软件公司工作已经有几年了,感慨万千,这中间有过许许多多的...
    从事编程的时间已经有几年了,从在学校的小打小闹的编程到现在的在专 门的从事电脑编程的软件公司工作已经有几年了,感慨万千,这中间有过许许多多的 酸甜苦辣,以及有着许许多多的不眠之夜,在此我首先感谢我的朋友们对我的支持, 谢谢你们,同时还要谢谢那些老前辈留下的那些技巧,在我每次面对问题要解决的时 候,是你们辛苦地摸索出来的东西让我豁然开朗,问题迎刃而解. 写这些东西的缘由说来也颇为简单,因为自己觉的有很多的技巧应该与大 家分享,同时也希望我平常所收集的以及我的个人心得能帮助所有编程序的人员 , 能将我写的这个东西成为你编程的宝典,由于是我第一次做这样的东西,难免会有这 样或是那样的不足之处,还请广大朋友指正. 由于技巧不断的更新 , 所以这个东西也 要不断的更新,我第一次首先尝试制作有关Delphi的技巧,由于我现在用的是她,所以 先写Delphi的技巧,其他的诸如VB、VC的技巧等我整理以后再进行制作,还希望广 大的网友多多支持。 -Programming time has been engaged for several years, chipping away from the school of programming to the current in the tertiary The door in computer programming, software company, has been for several years, and filled with emotion, which had many of the middle Ups and downs, as well as with many sleepless nights, and I begin to thank my friends for their support, Thank you, thank you to those old-timers while also leaving those skills in every time I face the problem to be solved when the Hou, yes you have worked har
    2022-06-02 07:01:27下载
    积分:1
  • 漂亮的delphi界面控件
    漂亮的delphi界面控件-beautiful interface controls
    2022-05-23 08:24:39下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载