搜索资源列表
ProduceraConsumer
- 用多线程的方法实现了生产者与消费者问题的模拟,关键技术是线程间通信和同步,通信采用消息模式-Achieved with multi-threaded simulation of producers and consumer issues
The-problem-of-product-and-consume
- 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。在同一个进程地址空间内执行的两个线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出来。-The producer- consumer qu
ProducerConsumer
- 操作系统中经典的生产者消费者问题的模拟程序,基于MFC对话框,多线程,可随意添加生产者和消费者个数,动态显示缓冲池中的状态和生产者消费者的工作情况-Operating system issues the classic simulation program producers and consumers, based on MFC dialog box, multi-threaded, can easily add the number of producers and consumers, d
p-and-c
- 在Windows和Linux操作系统上,利用各自操作系统提供的Mutex和信号量机制(Win32 API或Pthreads),实现生产者/消费者问题-In the Windows and Linux operating systems, the use of their operating system provided Mutex and semaphore mechanism (Win32 API or Pthreads), to achieve the producer/consumer
multithreadSyn
- 多线程同步,解决生产者消费者问题,应用临界区、互斥量、信号量等多种方式-Multi-thread synchronization to solve the producer consumer problem, apply the critical region, mutexes, semaphores and other methods
Produce_Consume_Pthread
- 利用各自操作系统提供的Mutex和信号量机制(Win32 API或Pthreads),实现生产者/消费者问题-Provided by each operating system Mutex and semaphore mechanism (Win32 API or Pthreads), to achieve the producer/consumer problem
Fork
- 实现了以进程解决生产者消费者问题.适合初学者学习操作系统是学习-Implemented to process the producer consumer problem solving. Suitable for beginners to learn the operating system is to learn
cp_problem
- 生产者消费者问题的代码研究,模拟这两个对象操作的过程,同步互斥的体现。-Code producers and consumers of the problem, the simulation of these two objects during the operation, the synchronization of mutually exclusive expression.
Sem
- 用Win32中的信号量实现生产者-消费者问题-Use Win32 semaphore in the producer- consumer issues
Multi_Thread_Programming
- 一篇实现多线程编程的论文。是关于生产者消费者问题。有一定的借鉴意义。-An Eassy on Multi-Thread Programming
OS
- linux下的生产者消费者问题 能够实现多个生产者多个消费者,消费者与生产者互斥-The producers of consumer problem under Linux Can realize DuoGe producers DuoGe consumers, consumer and producer mutually exclusive
os
- Fork: 实现了以进程解决生产者消费者问题. pclone: 实现了以线程解决生产者消费者问题. test_scheduler: 实现了处理机调度--实时调度算法EDF和RMS store_scheduler: 实现了存贮管理--动态不等长存储资源分配算法 HashFile: 实现了文件系统--Hash结构文件 device: 实现了设备管理--Linux设备驱动程序安装(注意头文件的位置随环境不同而改变)-Fork: to achieve a solution to pr
producer-and-consumer
- 操作系统 同步进程 生产者消费者问题程序设计-producer and consumer
shengchanzheyuxiaofeizhe
- 设计目的:通过研究Linux 的进程机制和信号量,实现生产者消费者问题的并发控制. 说明:有界缓冲区内设有20个存储单元,有界缓冲区可用数组实现,缓冲区中的内容自定。 设计要求:(1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容,当前指针位置和生产者/消费者进程标识符.(2)生产者和消费者至少各有两个以上.(3)多个生产者或多个消费者之间须有对缓冲区进行共享操作的函数代码(注意互斥与同步).-Design Objective: To study the mech
producers-and-consumers
- 生产者消费者问题的具体实现要求: (1)、至少提供3个生产者和3个消费者六个进程并发执行; (2)、缓冲区单元至少为十个; (3)、生产者进程的运行速度和消费者进程的运行速度可通过时间调整,目的便于查看当生产者进程比消费者进程快时缓冲区单元的变化情况,同样的,当消费者进程比生产者进程快时也能便于查看缓冲区单元内容的变化情况; (4)、实时显示缓冲区单元内容的变化情况,并告知是哪一个进程的行为导致了缓冲区单元内容的变化。 -Producers and consumers on
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
325516shengchanzhexiaofeizhe
- 线程同步的具体实现 生产者消费者问题的具体实现-Thread synchronization implementation Producer consumer
3.c
- 编写程序实现生产者-消费者问题。使用Linux的pthread线程库,创建2个生产者线程和2 个消费者线程。生产者线程计算当前的时间,把时间、第几次计算时间的序号(循环次 数)和线程ID作为一个消息,把消息放入缓冲区,消费者线程从缓冲区读出一个消息 并显示消息。缓冲区大小为5个,每个生产者线程生产10个消息,每个消费者线程消费 10个消息,即生产和消费分别为20次。 要求:2个生产者线程执行的代码是相同的(即执行同一函数),2个消费者线程也 一样。 提示: 生产者
10
- 此源代码使用的是C语言编写,可以实现操作系统中经典的生产者-消费者问题的验证-This source code is written in C can be achieved in the classic operating system producer- consumer problem verification
123
- 简单的生产者消费者问题。应付课程设计足够-Simple producer-consumer problem