搜索资源列表
pp
- 操作系统中的线程项目,模拟生产者消费者问题,烤羊肉串模型-Operating system threads projects, analog producers of consumer issues, kebabs model
producer_consumer
- 信号量---线程间通信,“生产者消费者” 问题C代码模拟---- Thread semaphore communication between producers and consumers in the C code simulation
shengchanzhe_xiaofeizhe
- 用两个线程,模拟生产者-消费者问题。能够自己控制缓存区的大小、生产者的速度、消费者的速度-Two threads to simulate the producer- consumer problem. Speed of being able to control the speed of the buffer size, producers, consumers
Producer-consumer-model
- 生产者消费者模型,用c语言实现模拟内存管理中的生产者和消费者,实现用信号量和锁的使用方法-Model of producers and consumers, producers and consumers in the analog memory management using the c language, the use of semaphores and locks
ProducerConsumer
- 生产者消费者的模拟 用java的JFrame写的界面,用图片运动表示生产者,消费者,缓冲的模拟-Simulation of producers and consumers java the JFrame write interface, producers, consumers, buffered analog picture movement
productor-consumer
- 生产者消费者问题 一个大小为3的缓冲区,初始为空 2个生产者 – 随机等待一段时间,往缓冲区添加数据, – 若缓冲区已满,等待消费者取走数据后再添加 – 重复6次 3个消费者 – 随机等待一段时间,从缓冲区读取数据 – 若缓冲区为空,等待生产者添加数据后再读取 – 重复4次 说明: 显示每次添加和读取数据的时间及缓冲区的状态 生产者和消费者用进程模拟。 包括windows和linux下的程序代
jinchengguanli
- 生产者消费者模型模拟进程调度。主要功能有:创建进程、查看内容、修改参数。-Producer-consumer model to simulate process scheduling. Main features are: creation process, review the content, modify the parameters.
Test5
- ucos-ii基于s3c2440模拟生产者-消费者实验-ucos-ii s3c2440 simulation based producer- consumer experiment
Product
- 模拟实现生产者消费者问题 生产者消费者问题,也称有限缓冲问题,是一个多线程同步问题的经典案例。该问题描述了两个共享固定大小缓冲区的线程——即所谓的“生产者”和“消费者”——在实际运行时会发生的问题。生产者的主要作用是生成一定量的数据放到缓冲区中,然后重复此过程。与此同时,消费者也在缓冲区消耗这些数据。该问题的关键就是要保证生产者不会在缓冲区满时加入数据,消费者也不会在缓冲区中空时消耗数据。 要解决该问题,就必须让生产者在缓冲区满时休眠(要么干脆就放弃数据),等到下次消费者消耗缓冲区中的数
consumer
- 用java模拟生产者消费者的可图形化实例。通过控制进程模拟了生产消费和储存。-Using java simulations producers and consumers can be graphical examples. By controlling the process to simulate the production and consumption and storage.
BC45
- 模拟生产者消费者问题,显示生产者消费者执行过程,10个buffer缓存区,5个生产者,5个消费者,1号生产者生产的产品名为1(几号生产者生产的产品名为几),消费者从buffer里取出的商品为几,则在消费过程中,右侧会显示消费的商品名-Analog producers and consumers, producers and consumers shows the execution process, 10 buffer cache, five producers, five consumer p
cp
- windows下进程模拟生产者消费者w indows下进程模拟生产者消费者windows下进程模拟生产者消费者-producers and consumers under simulated process windows windows windows producers and consumers under process simulation process simulation producers and consumers under the windows of the proce
D_PV
- 使用QT5.2.1实现的生产者消费者窗口界面模拟程序。学习使用QT线程间信号槽的使用。Qmutex QSemaphore,QWaitcondition,QThread的使用。-Producers and consumers to achieve using QT5.2.1 window interface simulation program. Learn to use the signal slot using the QT threads. Qmutex QSemaphore, QWaitc
producerCustomerModel
- 界面化的形式模拟生产者消费者模式,生产者生产东西,可指定最大生产量,消费者消费数据,也可指定最小仓库剩余数量-Interface of producers and consumers in the form of simulation models, producers to produce something, you can specify the maximum production capacity, consumer spending data warehouse can also s
windows
- 生产者消费者问题 ◦ 一个大小为3的缓冲区,初始为空 ◦ 2个生产者 – 随机等待一段时间,往缓冲区添加数据, – 若缓冲区已满,等待消费者取走数据后再添加 – 重复6次 ◦ 3个消费者 – 随机等待一段时间,从缓冲区读取数据 – 若缓冲区为空,等待生产者添加数据后再读取 – 重复4次 说明: ◦ 显示每次添加和读取数据的时间及缓冲区的状态 生产者和消费者用进程
linux
- 生产者消费者问题 ◦ 一个大小为3的缓冲区,初始为空 ◦ 2个生产者 – 随机等待一段时间,往缓冲区添加数据, – 若缓冲区已满,等待消费者取走数据后再添加 – 重复6次 ◦ 3个消费者 – 随机等待一段时间,从缓冲区读取数据 – 若缓冲区为空,等待生产者添加数据后再读取 – 重复4次 说明: ◦ 显示每次添加和读取数据的时间及缓冲区的状态 生产者和消费者用进程
Producer_Consumer
- 生产者-消费者问题模拟代码,包含两个程序,分别模拟生产者和消费者-A simulation of Produce-Consumer Problem.
condition
- Linux条件变量演示,创建两个线程模拟生产者消费者模型,在屏幕上打印a-z字母,注释详细-Linux condition variable presentations, create two threads simulation model of producers and consumers, az letters printed on the screen, detailed notes
TestTaskMgr
- 自己写的,C#的多线程并发,生产者消费者模式。查库模拟生产,多线程消费者并发发送获取的数据。(该源码用于学习用途,不能用于正式环境)-It s written by myself, C# multithread concurrency demo, producer-consumer model. Query to simulate the process of production, and multi-threaded concurrent consumers to send all the
110104010104
- 解决的主要问题 (1)MFC界面设计 (2)模拟生产者消费者的互斥操作 (3)各信号量及互斥体的使用 线程 线程是程序独立运行的基本单位,一个程序通过执行多个线程可以提高机器本身资源的利用率,同时也可以完成多任务并行运行的操作,多线程可以实现并行处理,避免了某项任务长时间占用CPU时间。 互斥体 互斥体与临界区很相似,但是使用时相对复杂一些,它不仅可以在同一应用程序的线程间实现同步,还可以在不同的进程间实现同步,从而实现资源的安全共享。 信号量 信号量是一个