搜索资源列表
producer_customer
- 生产者和消费者是一个程序上的生产者和消费者关系的演示程序,程序中运用可爱的动画来演示程序,清晰明了,程序中的核心代码是运用.NET框架中的上锁和解锁类函数来实现的。-producers and consumers is a point of relations between producers and consumers of the demonstration program, Application procedures love
dfdf
- 生产者生产,消费者消费,一般没有冲突,但当库存为0时,消费者要消费是不行的,但当库存为上限(这里是10)时,生产者也不能生产.请好好研读上面的程序,你一定会比以前进步很多. 上面的代码说明了synchronized和wait,notify没有绝对的关系,在synchronized声明的方法、代码块中,你完全可以不用wait,notify等方法,但是,如果当线程对某一资源存在某种争用的情况下,你必须适时得将线程放入等待或者唤醒
dfdf
- 生产者生产,消费者消费,一般没有冲突,但当库存为0时,消费者要消费是不行的,但当库存为上限(这里是10)时,生产者也不能生产.请好好研读上面的程序,你一定会比以前进步很多. 上面的代码说明了synchronized和wait,notify没有绝对的关系,在synchronized声明的方法、代码块中,你完全可以不用wait,notify等方法,但是,如果当线程对某一资源存在某种争用的情况下,你必须适时得将线程放入等待或者唤醒
liao
- 进程同步与互斥 该代码非常完善的展现的经典进程同步与互斥问题——生产者和消费者问题的同步与互斥过程!-Process synchronization and mutual exclusion of the code is very well exhibited the classic process of synchronization and mutual exclusion problem- the problem of pro
productor_consumer
- 生产者与消费者问题,用信号量实现!linux环境下的C代码-Producer and consumer issues, using semaphores to achieve! C code in linux environment
Producer_Consumer
- 关于死锁的问题,而生产者、消费者问题是死锁问题的一个比较经典的问题,此代码反映出死锁的一些方面。-On the deadlock problem, and the producer, consumer issues is the question of a more classic deadlock problem, this code reflects some aspects of the deadlock.
3.c
- 编写程序实现生产者-消费者问题。使用Linux的pthread线程库,创建2个生产者线程和2 个消费者线程。生产者线程计算当前的时间,把时间、第几次计算时间的序号(循环次 数)和线程ID作为一个消息,把消息放入缓冲区,消费者线程从缓冲区读出一个消息 并显示消息。缓冲区大小为5个,每个生产者线程生产10个消息,每个消费者线程消费 10个消息,即生产和消费分别为20次。 要求:2个生产者线程执行的代码是相同的(即执行同一
sx
- 操作系统中进程同步的问题,生产者-消费者模型的代码 在同一个进程地址空间内执行的两个线程。生产者线程生产物品, 然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线 程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物 品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者 线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有 满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出
consumerandproducer
- 著名的消费者与生产者的问题的代码实现,大学生的课程设计。-The famous consumer and producer problem code realization, college students course design.
producter
- 多个生产者,消费者,在多个缓冲区下,多进程执行的代码-Multiple producers, consumers, multiple buffers, multi-process execution code
Producer-and-consumer-C
- 能实现应生产者消费者算法的c++代码 运行环境为vc6.0-Producer and consumer C
productor-consumer
- 生产者消费者问题 一个大小为3的缓冲区,初始为空 2个生产者 – 随机等待一段时间,往缓冲区添加数据, – 若缓冲区已满,等待消费者取走数据后再添加 – 重复6次 3个消费者 – 随机等待一段时间,从缓冲区读取数据 – 若缓冲区为空,等待生产者添加数据后再读取 – 重复4次 说明: 显示每次添加和读取数据的时间及缓冲区的状态 生产者和消费者
exampleofOScommunication
- 操作系统进程/线程信号量机制实现通信的实例,有生产者消费者问题和哲学家就餐问题的程序代码。-Operating system process/thread semaphore mechanism to achieve communication examples, there are producers and consumers and the dining philosophers problem program code.
producer
- 比较好的生产者消费者模式,实例代码,可以自己尝试完成-A good producer consumer model, the example code
ProducerConsumer
- C++生产者消费者代码实现,详细注释,挺好的适合学习-C++ producer consumer code, detailed notes, very good for learning
producerandconsumer
- 汇编语言编写的生产者消费者问题的实验报告和代码,北邮操作系统大作业-Written in assembly language producers and consumers of lab reports and code, Beijing University of Posts and Telecommunications operating system big job
producter
- 多个生产者,消费者,在多个缓冲区下,多进程执行的代码-Multiple producers, consumers, multiple buffers, multi-process execution code
producter
- 多个生产者,消费者,在多个缓冲区下,多进程执行的代码-Multiple producers, consumers, multiple buffers, multi-process execution code
productor
- 生产者和消费者的问题 两种情况 一个生产者和一个消费者 多个生产者和多个消费者 代码描述 一个 egg 类表示生产者 和消费者 生产或消费的 蛋 一个 eggbox 类表示 装蛋 的容器 有固定大小 一个生产者类 一个消费者类-productor and customer
sem.c
- 这是关于操作系统中生产者消费者问题的一段代码,其中生产者和消费者问题是用信号量实现的,临界资源是用数组实现的。-This is a piece of code about the producer-consumer problem in the operating system, where producer and consumer problems are implemented with semaphores, and the c