搜索资源列表
ProducerConsumer-Test
- 解决操作系统中经典的生产者消费者问题,JAVA源代码-Solve the problems of the producers and consumers of the operating system in the classic, JAVA source code
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-and-consumer
- 《操作系统概念》第七版 中的实验项目:生产者消费者问题。本程序中,main()函数需要三个参数:主线程休眠时间;生产者线程数;消费者线程数。各线程的休眠等待时间是随机的。-Experimental project in the seventh edition of the operating system concept: producers and consumers. The program, the main () function takes three parameters: the
productor-consumer
- 生产者消费者问题 一个大小为3的缓冲区,初始为空 2个生产者 – 随机等待一段时间,往缓冲区添加数据, – 若缓冲区已满,等待消费者取走数据后再添加 – 重复6次 3个消费者 – 随机等待一段时间,从缓冲区读取数据 – 若缓冲区为空,等待生产者添加数据后再读取 – 重复4次 说明: 显示每次添加和读取数据的时间及缓冲区的状态 生产者和消费者用进程模拟。 包括windows和linux下的程序代
produceracustmer
- 生产者消费者问题,VS2010的WIN32控制台测试-Producers and consumers, VS2010 WIN32 console test
producer_consumerPthreads
- 生产者消费者问题的多线程实现,linux下,Pthread编程-Producers and consumers to multithreading, linux under, Pthread program
exampleofOScommunication
- 操作系统进程/线程信号量机制实现通信的实例,有生产者消费者问题和哲学家就餐问题的程序代码。-Operating system process/thread semaphore mechanism to achieve communication examples, there are producers and consumers and the dining philosophers problem program code.
threadsconcurrency
- 进程互斥与同步,用WindowsAPI编程,生产者消费者问题的C++实现-threads concurrency
Producers-and-consumers
- 多进程/ 线程编程:生产者 - 消费者问题。 1,设置两类进程/ 线程,一类为生产者,一类为消费者; 2,建立缓冲区的数据结构; 3,随机启动生产者或消费者; 4,显示缓冲区状况; 5,随着进程/ 线程每次操作缓冲区,更新显示;-Multi-process/thread programming: producer- consumer issues. 1, set two types of processes/threads, one for producers, a cla
Producer_consumer
- 用多进程同步方法演示“生产者-消费者”问题 -With multi-process synchronization demo " producer- consumer"
P_C
- 操作系统实验,生产者消费者问题实践。代码简单易懂,适合新手。-Experimental operating system, producers of consumer issues practice. Code is easy to understand for novices.
ProducerCustomer
- 用JAVA实现生产者消费者问题。生产者-消费者问题是一个经典的进程同步问题-Producers and consumers to achieve with JAVA. Producer consumer problem is a classical process synchronization problem
Product
- 模拟实现生产者消费者问题 生产者消费者问题,也称有限缓冲问题,是一个多线程同步问题的经典案例。该问题描述了两个共享固定大小缓冲区的线程——即所谓的“生产者”和“消费者”——在实际运行时会发生的问题。生产者的主要作用是生成一定量的数据放到缓冲区中,然后重复此过程。与此同时,消费者也在缓冲区消耗这些数据。该问题的关键就是要保证生产者不会在缓冲区满时加入数据,消费者也不会在缓冲区中空时消耗数据。 要解决该问题,就必须让生产者在缓冲区满时休眠(要么干脆就放弃数据),等到下次消费者消耗缓冲区中的数
producer-and-consumer
- 该程序是用c++写的一个生产者消费者问题的程序,使用的是windows下的进程同步,供大家参考和学习-The program is using c++ to write a program to producers and consumers, using a process under windows sync for reference and learning
110420214
- 操作系统实验一 进程的同步与互斥 生产者消费者问题-Synchronization and mutual exclusion producer consumer problem of operating system experiment process
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
pv
- 操作系统-pv操作生产者消费者问题,实现多进程问题-Operating system-pv operating producers and consumers, multi-process issues
Producer-Consumer
- 实现了生产者消费者的问题,通过调用系统函数随机产生字符对生产者消费者问题进行很好、直观的描述-Producers and consumers to realize the problem, randomly generated characters to be good producers and consumers, intuitive descr iption by calling the system function
shiyansan
- 实验三、生产者消费者问题 一个大小为3的缓冲区,初始为空 2个生产者 – 随机等待一段时间,往缓冲区添加数据, – 若缓冲区已满,等待消费者取走数据后再添加 – 重复6次 3个消费者 – 随机等待一段时间,从缓冲区读取数据 – 若缓冲区为空,等待生产者添加数据后再读取 – 重复4次-Third experiment, the producer of consumer issues a buffer of size 3, in
producers_consumers_problem
- 使用信号量实现操作系统经典同步问题-生产者消费者问题,或者有限缓冲区问题-using signals to solve the OS classic synchronization problem- the producers and consumers problem or limited buffers problems.