Description: 应用临界区解决操作系统生产者消费者问题源码,实验实现环境 Visual Studio 2005。-Application of the critical areas to solve the producer consumer problem of the operating system source code, experimental realization of the environment Visual Studio 2005. Platform: |
Size: 14336 |
Author:pk |
Hits:
Description: 用多进程同步方法解决生产者——费者问题
设计目的:通过研究Linux 的进程机制和信号量实现生产者消费者问题的并发控制.
说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1-20这20个整型数.
设计要求:
(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者县城的标识符.
(2)生产者和消费者各有两个以上.
(3)多个生产者或多个消费者之间须有共享对缓冲区进行操作的函数代码.
-Multi-process synchronization solution to the producer- the issue of fees is designed to: Linux by studying the process of the mechanism and signal volume producers realize concurrency control on consumer issues. Description: Bounded buffer zone there are 20 storage units, Add/Remove the data item is set to 1-20 this 20 integer. design requirements: (1) Each producer and consumer sector of the buffer zone have to operate immediately after showing the entire contents of the buffer zone community, current pointer location and producer/consumer identifier county. (2) producers and consumers have more than two. (3) or more consumers than producers have to be shared between the conduct of the buffer zone a function of the operation code. Platform: |
Size: 4096 |
Author:heige |
Hits:
Description:
Introduction
In this project, we will design a programming solution to the bounded-buffer problem using the producer and consumer processes . The solution uses three semaphores: empty and full, which count the number of empty and full slots in the buffer, and mutex, which is a binary (or mutual exclusive) semaphore that protects the actual insertion or removal of items in the buffer. For this project, standard counting semaphores will be used for empty and full, and, rather than a binary semaphore, a mutex lock will be used to represent mutex. The producer and consumer – running as separate threads – will move items to and from a buffer that is synchronized with these empty, full, and mutex structures. You are required to use the pthread package to solve this problem in this project.
And there can be several producers/consumers as many as you want.
-Introduction In this project, we will design a programming solution to the bounded-buffer problem using the producer and consumer processes. The solution uses three semaphores: empty and full, which count the number of empty and full slots in the buffer, and mutex, which is a binary (or mutual exclusive) semaphore that protects the actual insertion or removal of items in the buffer. For this project, standard counting semaphores will be used for empty and full, and, rather than a binary semaphore, a mutex lock will be used to represent mutex. The producer and consumer- running as separate threads- will move items to and from a buffer that is synchronized with these empty, full, and mutex structures. You are required to use the pthread package to solve this problem in this project.And there can be several producers/consumers as many as you want. Platform: |
Size: 96256 |
Author:MidnightD |
Hits:
Description: 用信号量解决生产者消费者问题,简捷易懂!-Semaphore producers with consumers to solve the problem, simple and understandable! Platform: |
Size: 1024 |
Author:王春林 |
Hits:
Description: 生产者-消费者模式的OpenMP下的实现。已经调试通过,体现了OpenMP的相应功能。-Producer- Consumer model of the realization of OpenMP. Has debugging through, embodies the corresponding OpenMP function. Platform: |
Size: 1024 |
Author:祥子 |
Hits:
Description: 操作系统课程设计:很好的课程设计:研究的是生产者消费者的进程同步问题,需要的人赶紧下吧-Operating systems curriculum design: a very good curriculum design: the study is the process of the producer consumer synchronization problem, those who need it quickly, are you Platform: |
Size: 2106368 |
Author:张薇薇 |
Hits:
Description: 多线程编程示例,解决生产者消费者问题.水平有限,仅供初学者参考.-Multi-threaded programming examples to solve the producer consumer problem. Is limited, only for advanced users. Platform: |
Size: 9987072 |
Author:zhen |
Hits:
Description: 生产者消费者模型,多线程程序,主要涉及互斥、信号量等操作系统知识-Producer consumer model, multi-threaded programs, mainly related to mutual exclusion, semaphores and other operating system knowledge Platform: |
Size: 4486144 |
Author:李明 |
Hits:
Description: 模拟PV操作同步机构,且用PV操作解决生产者——消费者问题-PV operation synchronization, simulation, and the use of PV operation to solve the producer- consumer problem Platform: |
Size: 2048 |
Author:liu |
Hits:
Description: 生产者-消费者;多线程同步方法解决生产者-消费者问题 (Bounded - Buffer Problem) 内容:有界缓冲区内设有10个存储单元,放入/取出的数据项 设定为1~10这10个整形数。要求每个生产者和消费者对有界 缓冲区进行操作后,即时显示有界缓冲区的全部内容、当前指针位 置和生产者/消费者标识符-Producers- consumers multithreaded synchronization method to solve the producer- consumer problem (Bounded- Buffer Problem) content: bounded buffer equipped with 10 storage units, load/unload data item is set to 1 to 10 10 integers. Requirements of each of the producers and consumers of the bounded buffer immediately after the entire contents of the sector buffer, the current pointer position and producer/consumer identifier Platform: |
Size: 3072 |
Author:ia |
Hits: