新闻中心

EEPW首页>嵌入式系统>设计应用> 多线程编程之:实验内容——“生产者消费者”实验

多线程编程之:实验内容——“生产者消费者”实验

作者: 时间:2013-09-13 来源:网络 收藏

本文引用地址://m.amcfsurvey.com/article/257119.htm

4.结果

运行该程序,得到如下结果:

$./producer_customer

……

Producer:delay=3

Write5totheFIFO

Customer:delay=3

ReadhellofromFIFO

Producer:delay=1

Write5totheFIFO

Producer:delay=2

Write5totheFIFO

Customer:delay=4

ReadhellofromFIFO

Customer:delay=1

ReadhellofromFIFO

Producer:delay=2

Write5totheFIFO

……

linux操作系统文章专题:linux操作系统详解(linux不再难懂)

tcp/ip相关文章:tcp/ip是什么



上一页 1 2 3 下一页

评论


相关推荐

技术专区

关闭