搜索资源列表
linyisen
- 生产者与消费者问题,一共12个缓冲池,生产和消费时间可以自己设定-producers and consumers, a total of 12 buffer pool, the production and consumption of time can be set itself
Thread
- c++builder5.5线程例程,生产与消费两个线程间的同步,并有柱状图表示
main_shm
- 使用多线程和共享内存技术解决生产者消费都问题的示例
29_161625_pc
- 生产者与消费者问题算法实现,功能要求:根据进程同步机制,编写一个解决上述问题的可视化程序,可显示缓冲池状态、放数据、取数据等过程。 具体参数:有4个生产者进程,分别为P1、P2、P3和P4; 有4个消费者进程,分别是C1、C2、C3和C4; 缓冲区单元个数N=15; 不同的生产进程可生产不同的产品,自己可任意定义,在本程序中是直接将相应生产者代号放入缓冲区,消费时将某消费者消费某生产者的信息显示出来 -Producers and consumers, the issue
Come_out_the_problem_of_producing_and_consuming_by
- 这是一个用线程来实现生产消费的源代码,开发环境是VC++2006,针对的是在uC/OS-II操作系统里信号量是如何进行请求与发送的?本人已经调试通,需要的可以下载下来用。-This is a thread used to achieve the production and consumption of the source code, development environment is VC++2006, is for uC/OS-II operating system how to car
thread
- c++ builder 多线程实例 (生产消费模式)-multi-threaded c++ builder instance (production and consumption patterns)
OS
- 操作系统关于线程同步的实验,生产消费问题的模拟。-The operating system on the thread synchronization experiments, simulation of production and consumption issues.
simplePC
- Windows进程和线程创建方法实现一个简单的读者写者程序,读者将1~10十个数字一次填入临界区gData,当且仅当gData被读者消费后,写者才可以写入下一个数。-Windows process and thread creation method to implement a simple reader writer program, readers will be number 1 to 10 ten critical areas once populated gData, if and
BarberAndCustomer
- 1)用C语言或C++语言编程实现P、V原语并用P、V原语描述如下生产者-消费者问题: 有一个理发师,一把理发椅和n把提供给等候理发的顾客座的椅子。如果没有顾客,则理发师便在理发椅子上睡觉;当第一个顾客到来时,必须唤醒该理发师进行理发;如果理发师正在理发时又有顾客到来,则如果有空椅子可坐,他就坐下来等待,如果没有空椅子,他就离开理发店。 为理发师和顾客各编一段程序描述他们的行为,要求不能带有竞争条件,试用P、V操作实现。 (2)分析 此题可看作是n个生产者和1个消费者问题
The-problem-of-product-and-consume
- 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。在同一个进程地址空间内执行的两个线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出来。-The producer- consumer qu
TestPC
- 用多线程解决生产者消费者问题,每当生产者生产物品,存入仓库,消费者从仓库消费,当仓库满时候,停止生产,仓库为空时,消费者停止消费-Producers and consumers with multiple threads to solve the problem, when producers produce goods into the warehouse, consumer spending from the warehouse when the warehouse is full time
sx
- 操作系统中进程同步的问题,生产者-消费者模型的代码 在同一个进程地址空间内执行的两个线程。生产者线程生产物品, 然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线 程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物 品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者 线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有 满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出 来。 -Operating systems pr
PC
- 关于生产者和消费者之间的关系,让我们能清楚的明白生产进程和消费进程。-With regard to the relationship between producers and consumers, we can clearly understand the production process and consumption process.
buffering
- 利用缓冲池和多线程技术,实现生产者和消费者同步的问题。只有缓冲池中有空闲的时候才可以生产产品;只有缓冲池有产品的时候才可以消费。-Pool and multi-threading technology to realize the synchronization problem of the producers and consumers. Buffer pool idle time can produce products pool products when it can be consu
produceAndConsume
- 利用多线程的技术实现生产者和消费者的同步问题。解决了生产一个消费一个的问题,提高了系统的性能。-Multi-threading technology to realize the synchronization problems of producers and consumers. Solve the production of a consumer a problem and improve the performance of the system.
product_consume
- 用线程互斥锁实现生产者消费者,生产者生产供消费者消费- pthread mutex make up the producter and consumer
pro_consumer
- 进程同步问题,生产者生产产品放入缓冲区,消费者消费产品释放缓冲区。-Process synchronization problem, producers produce product into the buffer, consumer spending product release buffer.