-
实现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
-
Gobang source, very classic game, it can be considered a friend DELPHI beginner...
五子棋源码,非常经典的游戏,也算是初学DELPHI的朋友必须了解的东西,可以加强逻辑思维,提高编程的严密性-Gobang source, very classic game, it can be considered a friend DELPHI beginner needs to know things, can enhance critical thinking, improve the tightness of Programming
- 2023-05-17 09:50:04下载
- 积分:1
-
一个时钟组件的源码
一个时钟组件的源码-components of a clock source
- 2022-10-12 02:25:03下载
- 积分:1
-
此程序演示了利用xml控件(当然也可以不通过xml控件),来实现程序间的互相通讯...
此程序演示了利用xml控件(当然也可以不通过xml控件),来实现程序间的互相通讯-This program demonstrated the use of xml control (Of course, we can not control through the xml) to realize the mutual inter-process communication
- 2022-03-18 00:46:45下载
- 积分:1
-
Optical cards, magnetic card reader driver generic source, photoelectric card, m...
光电卡,磁卡通用读卡器驱动程序源码,光电卡,磁卡通用读卡器驱动程序源码-Optical cards, magnetic card reader driver generic source, photoelectric card, magnetic card reader driver generic source
- 2022-04-26 18:35:33下载
- 积分:1
-
trtrtfghkfg GHK JG国环科建kjgjk gkj ghjk ghkg ghjkgkjgkj gkg ghkghjg
trtrtfghkfg ghk jg ghkj kjgjk gkj ghjk ghkg ghjkgkjgkj gkg ghkghjg-trtrtfghkfg ghkghkjg ghkjghkj kjgjk gkj ghjkghjkghkg ghjkgkjgkj gkg ghkghjg
- 2022-02-07 20:28:55下载
- 积分:1
-
获取CPU的ID号,适用于软件加密,比如生成一段随机码,然后判断CPU的ID号,如果CPU的ID号不相同就可以使用本软件。因为CPU的序列号是唯一的...
获取CPU的ID号,适用于软件加密,比如生成一段随机码,然后判断CPU的ID号,如果CPU的ID号不相同就可以使用本软件。因为CPU的序列号是唯一的-CPU access to the ID number, apply to software encryption, such as a section of randomly generated code, then determine the CPU s ID No., if the CPU is not the same as the ID number you can use this software. Because the serial number of CPU is the only
- 2022-07-15 09:21:23下载
- 积分:1
-
use apo control of the preparation of a serial
利用apo控件编写串口的一个源码程序-use apo control of the preparation of a serial-source programs
- 2022-11-18 20:25:04下载
- 积分:1
-
With C++ Language realize simple data structure of data in Bubble Sort algorithm...
用C++语言简单的实现数据结构中数据的冒泡排序算法的程序代码-With C++ Language realize simple data structure of data in Bubble Sort algorithm code
- 2022-03-20 02:01:58下载
- 积分:1
-
用Delphi7开发的小型超市管理系统。主要包括:进货子系统、日结子系统和出货子系统。...
用Delphi7开发的小型超市管理系统。主要包括:进货子系统、日结子系统和出货子系统。-The development of small-scale supermarket with Delphi7 management system. These mainly include: purchase subsystem, day-end subsystem and ship subsystems.
- 2022-07-26 23:17:01下载
- 积分:1