搜索资源列表
用线程做一个生产者-消费者同步问题
- 用线程做一个生产者-消费者同步问题 其实我是想用线程做一个生产者-消费者同步问题,现在已经成功了,贴出来,大家请指证. 我想让线程thread1和thread2按顺序显示,于是加了个信号量mysem,并且在新建两个线程的两个函数中进行P,V操作,来控制先后显示顺序-threads do with a producer-consumer Synchronization I actually want to do with threaded a producer-consumer synchroni
p-c
- 计算机操作系统的生产者与消费者问题 一组生产者向一组消费者提供消息,它们共享一个有界缓冲池,生产者向其中投放消息,消费者从中取得消息。生产者要不断将数据放入共享的缓冲,消费者要不断从缓冲取出数据。消费者必须等生产者取走数据后才能再放新数据(不覆盖数据),消费者必须等生产者放入新数据后才能去取(不重复)。-computer operating system, the producer and a consumer group to a group of producers to provide
PV
- 产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。在同一个进程地址空间内执行的两个线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出来。
xiaofeizheshengchanzhe-CSharp
- C#写的生产者消费者问题,涉及到进程与线程的操控问题,较为简洁易懂-the problem of producer and consumer written by C#
pac
- 应用c#解决生产者消费者问题的源码,界面清晰易懂,包含详细的说明文件-The application c# source code to solve producer-consumer problem, the interface is clear and easy to understand, contains a detailed documentation
The-issue-of-producers-and-consumers
- 本程序用VS2005实现多线程生产者和消费者问题,本程序含有界面,生产者和消费者数目可时时再现-The program realization multithreading producer and consumer issues with VS2005, the program contains a number of interface, producers and consumers can keep reproducing
producers_consumers_problem
- 使用信号量实现操作系统经典同步问题-生产者消费者问题,或者有限缓冲区问题-using signals to solve the OS classic synchronization problem- the producers and consumers problem or limited buffers problems.
the45165et
- 进程的同步是操作系统处理机管理的重要内容,本实验要求学生理解生产者与消费者问题模型,掌握解决该问题的算法思想,学会使用同步机制。-An important part of the process of synchronization is managed by the operating system processor, this test requires students to understand the problems of producers and consumers model
生产者消费者作业02
- C#编写的有关操作系统中生产者与消费者问题的实例,画面美观,生动形象的描绘了生产者与消费者之间的关系,代码部分简介易懂。(C# is an example of the problem of producers and consumers in the operation system. The picture is beautiful, vividly depicting the relationship between producers and consumers, and the cod