文件名称:Producers
介绍说明--下载内容均来自于网络,请自行研究使用
(1)操作系统中允许同时有多个进程并发进行,进程对共享资源存在互斥或者协作关系。其中生产者进程产生信息资源,可以是计算进程。消费者进程使用信息,它可以是输出打印进程,对于缓冲区生产者与消费者进程互斥使用,其次,消费者进程依赖于生产者产生的资源,如果尚未得到满足,则必须等待生产者信号的唤醒;
(2)本程序运行必须设置模拟系统缓冲区的个数以及系统进程的个数,对于每个程序,还必须设置其属性,即是生产者或者消费者,由简单的数字1和2表示。对于缓冲区的设置和进程个数及属性的设置可以根据需要模拟互斥和贡献,非常方便。
(3)运行过程中,按照各进程按照输入的顺序执行(FIFS),同时显示个进程的执行状态,包括就绪和等待队列中的进程,十分清晰明了。
-(1) the operating system to allow concurrent multiple processes simultaneously, and the process of shared resources, there is mutually exclusive or collaborative relationship. One producer process produces information resources, the process can be calculated. Consumers to process the use of information, which can be output printing process, for the process of mutual exclusion buffer producers and consumers to use, and secondly, consumers depend on producers in the process of the resource, if not met, then the producer must wait for the signal wake-up
(2) This program runs the buffer zone must be set to the number of analog systems, as well as the number of system processes, for each program, you must also set its properties, that is, the producer or consumer, from the simple figures 1 and 2, said. For the buffer settings and the process of setting the number and the property can simulate mutually exclusive needs and contributions, very convenient.
(3) The operation process, in acc
(2)本程序运行必须设置模拟系统缓冲区的个数以及系统进程的个数,对于每个程序,还必须设置其属性,即是生产者或者消费者,由简单的数字1和2表示。对于缓冲区的设置和进程个数及属性的设置可以根据需要模拟互斥和贡献,非常方便。
(3)运行过程中,按照各进程按照输入的顺序执行(FIFS),同时显示个进程的执行状态,包括就绪和等待队列中的进程,十分清晰明了。
-(1) the operating system to allow concurrent multiple processes simultaneously, and the process of shared resources, there is mutually exclusive or collaborative relationship. One producer process produces information resources, the process can be calculated. Consumers to process the use of information, which can be output printing process, for the process of mutual exclusion buffer producers and consumers to use, and secondly, consumers depend on producers in the process of the resource, if not met, then the producer must wait for the signal wake-up
(2) This program runs the buffer zone must be set to the number of analog systems, as well as the number of system processes, for each program, you must also set its properties, that is, the producer or consumer, from the simple figures 1 and 2, said. For the buffer settings and the process of setting the number and the property can simulate mutually exclusive needs and contributions, very convenient.
(3) The operation process, in acc
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Producers.cpp