文件名称:3
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:348.12kb
-
已下载: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/0910636_庄镝_作业3_进程同步与互斥.doc
0910636_庄镝_作业3/1.png
0910636_庄镝_作业3/2.png
0910636_庄镝_作业3/3.png
0910636_庄镝_作业3/pthread/
0910636_庄镝_作业3/pthread/bin/
0910636_庄镝_作业3/pthread/bin/Debug/
0910636_庄镝_作业3/pthread/bin/Debug/proj2
0910636_庄镝_作业3/pthread/main.c
0910636_庄镝_作业3/pthread/obj/
0910636_庄镝_作业3/pthread/obj/Debug/
0910636_庄镝_作业3/pthread/obj/Debug/main.o
0910636_庄镝_作业3/pthread/pthread.cbp
0910636_庄镝_作业3/pthread/pthread.depend
0910636_庄镝_作业3/pthread/pthread.layout
0910636_庄镝_作业3/0910636_庄镝_作业3_进程同步与互斥.doc
0910636_庄镝_作业3/1.png
0910636_庄镝_作业3/2.png
0910636_庄镝_作业3/3.png
0910636_庄镝_作业3/pthread/
0910636_庄镝_作业3/pthread/bin/
0910636_庄镝_作业3/pthread/bin/Debug/
0910636_庄镝_作业3/pthread/bin/Debug/proj2
0910636_庄镝_作业3/pthread/main.c
0910636_庄镝_作业3/pthread/obj/
0910636_庄镝_作业3/pthread/obj/Debug/
0910636_庄镝_作业3/pthread/obj/Debug/main.o
0910636_庄镝_作业3/pthread/pthread.cbp
0910636_庄镝_作业3/pthread/pthread.depend
0910636_庄镝_作业3/pthread/pthread.layout
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.