搜索资源列表
cp
- 操作系统模拟生产着消费者问题,包括缓冲池满或空之后的阻塞、唤醒处理以及对于缓冲池访问权的阻塞、唤醒处理。个人编写,与网上版本不同-Simulate the production of consumer operating systems, including the buffer pool is full or empty block after the wake-up process and for blocking access to the buffer pool, wake-up pro
ProducerConsumer
- 操作系统中经典的生产者消费者问题的模拟程序,基于MFC对话框,多线程,可随意添加生产者和消费者个数,动态显示缓冲池中的状态和生产者消费者的工作情况-Operating system issues the classic simulation program producers and consumers, based on MFC dialog box, multi-threaded, can easily add the number of producers and consumers, d
produce
- 对生产者消费者问题要能实现动态的设置缓冲池大小,最好做出界面效果,实现动态的生产和消费过程。-produce
consumer_producer
- 1、n个缓冲区的缓冲池作为一个临界资源: 当生产者任务从数据源—文件中读取数据后将会申请一个缓冲区,并将此数据放缓冲区中。 消费者任务从一个缓冲区中取走数据,并将其中的内容打印输出。 当一个生产者任务正在访问缓冲区时,其他生产者和消费者任务不能访问缓冲区。 当一个消费者任务正在访问缓冲区时,其他其他生产者和消费者任务不能访问缓冲区。 使用互斥量实现对缓冲池的互斥访问。(1. Buffer pool of N buffers as a critical resource: When the pr