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

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

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

  • 这是一个Delphi很好很全面知识的实例,但需要用户有一定的基础。...
    这是一个Delphi很好很全面知识的实例,但需要用户有一定的基础。-Delphi This is a good example of comprehensive knowledge, but require users to have a certain foundation.
    2022-06-14 22:20:05下载
    积分:1
  • 一所大学的实验室作业及解决方案
    lab assignment and solution of one university
    2022-12-10 09:15:03下载
    积分:1
  • 学生成绩管理系统,delphi+database desktop数据库。功能强大,<br> 包括成绩录入,复杂查询,统计等功能。使用方便,欢迎下载。...
    学生成绩管理系统,delphi+database desktop数据库。功能强大, 包括成绩录入,复杂查询,统计等功能。使用方便,欢迎下载。 没带dbe引擎,所以要装delphi才能运行。原想打包成exe的,但没成功。-student performance management system, delphi+ database desktop database. Powerful, lt; Brgt; Results include logging, complex queries, and statistics functions. Ease of use, welcome to download. Lt; Brgt; No engine with DBE, to be installed delphi operation. The original package into exe to, but did not succeed.
    2022-04-07 04:42:51下载
    积分:1
  • 1个非常好的录制鼠标动作的源码
    1个非常好的录制鼠标动作的源码-a very good record mouse movements FOSS
    2022-08-24 05:19:43下载
    积分:1
  • Delphi编程源代码,2005年100箱好
    《Delphi 2005精彩编程百例》源代码- Delphi 2005 programming 100 cases excellent source code
    2023-06-07 14:25:04下载
    积分:1
  • 小区水费管理系统源代码水费收费管理系统 水费收费管理系统...
    小区水费管理系统源代码水费收费管理系统 水费收费管理系统 -district water source code management system for water mana gement system for water mana gement system
    2022-04-15 07:00:15下载
    积分:1
  • 用DELPHI获取U盘序列号。 通过此功能可以把系统放在U盘上,防止别人拷走。...
    用DELPHI获取U盘序列号。 通过此功能可以把系统放在U盘上,防止别人拷走。-U disk using DELPHI obtain serial number. With this feature can be placed on U disk system to prevent others taking copy.
    2022-01-26 02:58:18下载
    积分:1
  • delphi控件
    delphi控件-delphi controls
    2022-01-25 23:16:09下载
    积分:1
  • 一个可设置窗口透明属性的控件,可让窗口透明、半透明,也可显示窗口的淡入/淡出效果。...
    一个可设置窗口透明属性的控件,可让窗口透明、半透明,也可显示窗口的淡入/淡出效果。-One can set the window transparent property of the controls that allow the window transparent, translucent, but also displays a window fade in/fade out effects.
    2023-01-15 03:40:03下载
    积分:1
  • Delphi B/S programming skills sets (29
    Delphi2005 B/S程序设计技巧集(29--33) 现在delphi 2005 B/S的书籍资料太少,几乎没有可参考的资料,这在一定程度上限制了delphi 2005的使用,相反C#,ASP的书籍资料到处都是。通过几个月的学习也算是总结了一点经验,从现在起我将陆续将ASP和C#的例子、技巧翻译到delphi 2005下面,希望对大家的学习和工作有帮助,毕竟.Net是一种发展趋势。我将不定期写新的内容,同时,如果你在工作或学习中有什么问题,我也会将问题加入本篇文章,另外,一个人的能力毕竟有限,也希望大家共同来解决问题。 宋雨炫 -Delphi B/S programming skills sets (29-- 33) is now delphi 2005 B/S books so little information, almost no reference to the information, This, to a certain extent, limit the use of Delphi 2005, C# contrary, ASP information books are everywhere. Through several months of learning is also summed up the experiences that from now on I will continue, ASP and C# example, delphi translation skills to below 2,005, we hope to study and work there to help, After all. Net is a development trend. From time to time I will write the new content, and if you work or study any problem, I will also take the issue into this article, in addition to the ability of a person is limited, I hope we can jointly to solve the problem. SONG X
    2023-01-26 07:20:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载