文件名称:ProcessesCommunication
介绍说明--下载内容均来自于网络,请自行研究使用
程序模拟操作系统课程中的进程间通信,方便起见,各个进程只有编号信息。所用数据结构为大小为10的队列。运行情况为:用户输入进程总数以及各个进程的编号,此后程序模拟进程对队列提出请求,若队列不空,则插入,队列满则不予插入。程序利用rnd这个随机变量是奇数还是偶数决定是入队还是出队。-Procedures for operating systems courses in the simulation process communication, convenience, only the number of information processes. Data structure used for the size of the queue 10. Operation as follows: the total number of user input process, as well as the number of processes, since the procedures of the modeling process the request queue if the queue is not empty, then insert, queue full are not inserted. Procedures for the use of the random variable rnd is odd or even decision is still a team to the team.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ProcessesCommunication.cpp