搜索资源列表
生产者-消费者问题
- 用c语言实现生产者-消费者问题-used language producer-consumer issues
c程序设计
- c语言实现生产者消费者问题-producer consumer issues
生产者和消费者问题
- 操作系统经典的问题-生产者和消费者问题.C++编写.-OS classic problem-producer and consumer issues. C preparation.
生产者消费者
- 用C++编写的生产者消费者问题模拟
OS_NO1
- 系统编程中消费者,生产者的实现源代码,初学者可能很有用。-System Programming consumers, producers realize the source code, it might be useful to beginners.
R_WP1
- os的一次作业,生产者消费者问题,用信号量来实现的-os an operation, producers of consumer problems, and use semaphores to achieve the
os
- java和c语言编写的操作系统的算法,有生产者消费者问题和银行家算法,具体的实验报告格式-java and c language operating system algorithms, there are producers of consumer issues and banker s algorithm, the specific reporting format experiment
Producer_Customer
- 模拟操作系统中进程的互斥和同步,解决生产者和消费者问题。使用图形界面,可以在程序中方便的更改生产者和消费者个数,和模拟速度。-Simulation of the operating system mutex and synchronization process to resolve the issue of producers and consumers. Use graphical interface, you can change the process convenient number
Producer
- 程序实现了两个生产者和两个消费者的生产者消费者问题(当生产者消费者数目再多时加上几个子进程就可以了)为了防止程序陷入死循环,给生产者限定了生产次数,同时为了方便截图,将次数限定的比较少。下面是我的程序:-Procedures to achieve the two producers and two consumers and producers of consumer issues (when the number of producers of consumers to add a few m
producder
- C++语言实现生产者消费者问题 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。-C++ language to achieve the producer consumer problem producers- consumers are a classic problem of process synchronization problem, the problem was first proposed by Dijkstra pr
Os.c
- linux下生产者消费者问题 完全在linux环境下开发-producers of consumer issues under linux complete linux environment in the development of
testThread
- 操作系统 同步互斥 生产者消费者问题 c语言实现 -Producer and Consumer
threecodes
- 1、 用C语言写一个程序名字为procs4,该程序运行过程中共有4个进程,procs4程序(父进程)创建2个子进程p1和p2,p1子进程再创建一个子进程p3。4个进程完成如下工作: 父进程并打印字符串“I am main process”;p1子进程打印“I am child process p1”字符串;p2子进程打印“I am child process p2”;子进程p3打印字符串“I am child process p3”,然后使用exec(族)系统调用打印当前目录下文件和子目录下
consumer-producer
- c语言。生产者消费者问题的信号量解决代码。简洁明了-c language. About consumer and producer.
producer_customer_question
- 通过创建线程实现生产者、消费者对缓冲区进行互斥操作。 用信号量机制解决进程(线程)的同步与互斥问题。 缓冲区大小为31,缓冲区满则不允许生产者生产数据,缓冲区空则不允许消费者消费数据。 程序一直运行下去,直到敲击回车停止。-Achieved by creating a thread producers, consumers mutually exclusive operation of the buffer. Settlement process with the semaphore
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
3.c
- 编写程序实现生产者-消费者问题。使用Linux的pthread线程库,创建2个生产者线程和2 个消费者线程。生产者线程计算当前的时间,把时间、第几次计算时间的序号(循环次 数)和线程ID作为一个消息,把消息放入缓冲区,消费者线程从缓冲区读出一个消息 并显示消息。缓冲区大小为5个,每个生产者线程生产10个消息,每个消费者线程消费 10个消息,即生产和消费分别为20次。 要求:2个生产者线程执行的代码是相同的(即执行同一函数),2个消费者线程也 一样。 提示: 生产者
producer_consumer
- 信号量---线程间通信,“生产者消费者” 问题C代码模拟---- Thread semaphore communication between producers and consumers in the C code simulation
生产者消费者
- 使用c++编写程序,解决消费者生产者问题(Write programs by using c++ to solve consumer and producer problems)
生产者消费者作业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