Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - consumer_producer
Search - consumer_producer - List
多个生产者多个消费者同步问题——进程调度--操作系统模拟
Date : 2008-10-13 Size : 782.02kb User : kp

多个生产者多个消费者同步问题——进程调度--操作系统模拟-A number of producers more than consumers synchronization- the process of scheduling- the operating system simulation
Date : 2025-07-08 Size : 782kb User : kp

用信号量机制实现多个生产者—消费者问题,实现线程间的同步与互斥-Semaphore implementation mechanism with a number of producers- the consumer problem, achieve inter-thread synchronization and mutual exclusion
Date : 2025-07-08 Size : 4kb User : qingangjun

著名的生产者消费者问题 在linux下实现 操作系统必备-the famous consumer-producer problem
Date : 2025-07-08 Size : 3kb User : 小猪猪

使用了三个信号量: empty (以记录有多少空位)、full (以记录有多少满位)以及mutex (二进制信号量或互斥信号量,以保护对缓冲插入与删除的操作)。对于本项目, empty 与full 将采用标准计数信号量,而mutex 将采用二进制信号量。生产者与消费者作为独立线程,在empty、full、mutex 的同步前提下,对缓冲进行插入与删除。 -Producer and consumer problem of operating system.
Date : 2025-07-08 Size : 1kb User : chen ming hui

1、n个缓冲区的缓冲池作为一个临界资源: 当生产者任务从数据源—文件中读取数据后将会申请一个缓冲区,并将此数据放缓冲区中。 消费者任务从一个缓冲区中取走数据,并将其中的内容打印输出。 当一个生产者任务正在访问缓冲区时,其他生产者和消费者任务不能访问缓冲区。 当一个消费者任务正在访问缓冲区时,其他其他生产者和消费者任务不能访问缓冲区。 使用互斥量实现对缓冲池的互斥访问。(1. Buffer pool of N buffers as a critical resource: When the producer task reads data from the data source file, it will apply for a buffer and put the data in the buffer. The consumer task takes data from a buffer and prints out the contents. When a producer task is accessing the buffer, other producer and consumer tasks cannot access it. When a consumer task is accessing the buffer, other producer and consumer tasks cannot access the buffer. Mutex is used to access the buffer pool.)
Date : 2025-07-08 Size : 1kb User : muzuokai
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.