文件名称:3
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 348kb
- 下载次数:
- 0次
- 提 供 者:
- 庄*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
按照生产者/消费者的工作原理,在Linux环境下,创建两个进程(或线程),一个进程(线程)作为生产者(用来向缓冲区中写入字符,字符的个数有限),另一个进程(线程)作为消费者(从缓冲区中读取生产者写入的字符)。
要求:
1. 程序应将缓冲区中的内容不断的显示出来;
2. 程序设计中要考虑两进程并发执行中的同步与互斥问题;
3. 有能力的同学可以将管理的并发进程数扩展为N(N>=3)多个。-In accordance with the producer/consumer works in a Linux environment, to create two processes (or threads), a process (thread) as a producer (used to buffer write characters limited number of characters)another process (thread) as a consumer (the producers to write the character read from the buffer).
Requirements:
A program the contents of the buffer should be continuously displayed
Program design should consider the two processes concurrent execution, synchronization and mutual exclusion
(3) the ability of students to the number of concurrent process management extended to N (N> = 3) multiple.
要求:
1. 程序应将缓冲区中的内容不断的显示出来;
2. 程序设计中要考虑两进程并发执行中的同步与互斥问题;
3. 有能力的同学可以将管理的并发进程数扩展为N(N>=3)多个。-In accordance with the producer/consumer works in a Linux environment, to create two processes (or threads), a process (thread) as a producer (used to buffer write characters limited number of characters)another process (thread) as a consumer (the producers to write the character read from the buffer).
Requirements:
A program the contents of the buffer should be continuously displayed
Program design should consider the two processes concurrent execution, synchronization and mutual exclusion
(3) the ability of students to the number of concurrent process management extended to N (N> = 3) multiple.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
0910636_庄镝_作业3
..................\0910636_庄镝_作业3_进程同步与互斥.doc
..................\1.png
..................\2.png
..................\3.png
..................\pthread
..................\.......\bin
..................\.......\...\Debug
..................\.......\...\.....\proj2
..................\.......\main.c
..................\.......\obj
..................\.......\...\Debug
..................\.......\...\.....\main.o
..................\.......\pthread.cbp
..................\.......\pthread.depend
..................\.......\pthread.layout
..................\0910636_庄镝_作业3_进程同步与互斥.doc
..................\1.png
..................\2.png
..................\3.png
..................\pthread
..................\.......\bin
..................\.......\...\Debug
..................\.......\...\.....\proj2
..................\.......\main.c
..................\.......\obj
..................\.......\...\Debug
..................\.......\...\.....\main.o
..................\.......\pthread.cbp
..................\.......\pthread.depend
..................\.......\pthread.layout