CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Producer Consumer semaphores
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Producer Consumer semaphores - List
[
JSP/Java
]
Consumer-Producer
DL : 0
java生产者消费者程序实现 线程,信号量互斥事件 临界资源-java producer consumer program threads, semaphores contradict critical resources incident
Date
: 2008-10-13
Size
: 9.96kb
User
:
龙杏
[
JSP/Java
]
Consumer-Producer
DL : 0
java生产者消费者程序实现 线程,信号量互斥事件 临界资源-java producer consumer program threads, semaphores contradict critical resources incident
Date
: 2025-07-11
Size
: 10kb
User
:
龙杏
[
Process-Thread
]
producer-consumer-problem
DL : 0
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.
Date
: 2025-07-11
Size
: 94kb
User
:
MidnightD
[
Linux-Unix
]
pthread
DL : 0
pthread同步信号量解决生产者消费者问题-pthread producer consumer synchronization semaphores to solve the problem
Date
: 2025-07-11
Size
: 1kb
User
:
123
[
OS Develop
]
ProducerConsumerProblem
DL : 0
操作系统实验:用信号量解决producer & consumer问题。 包括: WIN ProCon(1).cpp WIN ProCon(2).cpp LINUX ProCon.c-Operating System Experiment: Using Semaphores solve the producer & consumer issues. Include: WIN ProCon (1). Cpp WIN ProCon (2). Cpp LINUX ProCon.c
Date
: 2025-07-11
Size
: 16kb
User
:
张泽西
[
Windows Develop
]
rain
DL : 0
关于进程同步的,完成的是生产者消费者问题。包含信号量-With regard to the process of synchronization, and the completion of the producer consumer problem. With semaphores
Date
: 2025-07-11
Size
: 2kb
User
:
rain
[
Linux-Unix
]
productor_consumer
DL : 0
生产者与消费者问题,用信号量实现!linux环境下的C代码-Producer and consumer issues, using semaphores to achieve! C code in linux environment
Date
: 2025-07-11
Size
: 1kb
User
:
flydragon
[
OS program
]
fafa
DL : 0
利用记录性信号量解决生产者——消费者问题-Record of the use semaphores to solve the producer- consumer issues
Date
: 2025-07-11
Size
: 1.76mb
User
:
谢天
[
Internet-Network
]
ProdCons
DL : 0
a C program that implements a producer-consumer system with two processes.(using semaphores)
Date
: 2025-07-11
Size
: 1kb
User
:
MPLinux
[
Process-Thread
]
Producer-Consumer-Model
DL : 0
生产者消费者模型,多线程程序,主要涉及互斥、信号量等操作系统知识-Producer consumer model, multi-threaded programs, mainly related to mutual exclusion, semaphores and other operating system knowledge
Date
: 2025-07-11
Size
: 4.28mb
User
:
李明
[
Process-Thread
]
multithreadSyn
DL : 0
多线程同步,解决生产者消费者问题,应用临界区、互斥量、信号量等多种方式-Multi-thread synchronization to solve the producer consumer problem, apply the critical region, mutexes, semaphores and other methods
Date
: 2025-07-11
Size
: 10kb
User
:
lanyuna
[
Linux-Unix
]
shengchanzheyuxiaofeizhe
DL : 0
设计目的:通过研究Linux 的进程机制和信号量,实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,有界缓冲区可用数组实现,缓冲区中的内容自定。 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者进程标识符.(2)生产者和消费者至少各有两个以上.(3)多个生产者或多个消费者之间须有对缓冲区进行共享操作的函数代码(注意互斥与同步).-Design Objective: To study the mechanism and process of Linux semaphores to achieve producer-consumer problem of concurrency control. Description: bounded buffer storage units are equipped with 20, bounded buffer can be used to achieve the array, the contents of the buffer Custom. Design requirements: (1) Each producer and consumer of the bounded buffer operations immediately after the show the entire contents of a bounded buffer, the current pointer position and the producer/consumer process identifier (2) Producer and consumers have at least two or more (3) A number of producers or consumers should have to share operation of the buffer function of the code (note the mutual exclusion and synchronization).
Date
: 2025-07-11
Size
: 13kb
User
:
奋斗
[
JSP/Java
]
Semaphores
DL : 0
用Semaphores解决JAVA生产者消费者问题-Using Semaphore to solve the producer and consumer Question
Date
: 2025-07-11
Size
: 2kb
User
:
杜继宏
[
Software Engineering
]
Customer
DL : 0
通过研究Linux的进程同步机制和信号量,实现生产者消费者问题的并发控制。-Through the study of Linux process synchronization mechanism and semaphores, concurrency control of the producer-consumer problem.
Date
: 2025-07-11
Size
: 4.62mb
User
:
litao
[
Internet-Network
]
daima
DL : 0
Linux进程编程,生产者-消费者程序组,支持多个生产者和消费者,生产者进程数为2, 消费者进程数为3。 生产者与消费者之间使用共享内存进行数据传递,并使用信号量对数据的内容进行保护。-The Linux process programming, producer- consumer program group, supports multiple producers and consumers, the the producer process for 2, consumers process 3. Use shared memory for data transfer between producers and consumers, and use semaphores to protect the data.
Date
: 2025-07-11
Size
: 3kb
User
:
q
[
Linux-Unix
]
111
DL : 0
编写一个生产者-消费者程序组,支持多个生产者和消费者,生产者进程数为2, 消费者进程数为3。 生产者与消费者之间使用共享内存进行数据传递,并使用信号量对数据的内容进行保护。-Preparation of a producer- consumer program group, supports multiple producers and consumers, the the producer process for 2 Consumers number of processes. Use shared memory for data transfer between producers and consumers, and use semaphores to protect the data.
Date
: 2025-07-11
Size
: 147kb
User
:
蔡应恒
[
Other
]
Producer-consumer-model
DL : 0
生产者消费者模型,用c语言实现模拟内存管理中的生产者和消费者,实现用信号量和锁的使用方法-Model of producers and consumers, producers and consumers in the analog memory management using the c language, the use of semaphores and locks
Date
: 2025-07-11
Size
: 12kb
User
:
[
Process-Thread
]
Producer_Consumer
DL : 0
我是编程小菜鸟= =,这是一个信号量互斥的经典问题,消费者生产者问题的简单实现,使用线程方式,所以在调试时须选择多线程方式。-I was programming a small rookie = = This is a classic problem of mutual exclusion semaphores, producer consumer problem s simple implementation, using threads, so when debugging multithreaded mode must be selected.
Date
: 2025-07-11
Size
: 1.82mb
User
:
李宜核
[
Algorithm
]
PC
DL : 0
solving the producer consumer problem using threads and semaphores
Date
: 2025-07-11
Size
: 13.46mb
User
:
lolokad
[
OS Develop
]
sem.c
DL : 0
这是关于操作系统中生产者消费者问题的一段代码,其中生产者和消费者问题是用信号量实现的,临界资源是用数组实现的。-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 critical resource is implemented as an array.
Date
: 2025-07-11
Size
: 2kb
User
:
宗道明
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.