多线程编程之:实验内容——“生产者消费者”实验
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是什么
评论