资源说明:Consider a car manufacturing plant. Assume that the manufacturing happens in three stages. In the first stage chassis is manufactured. In the second stage the car is assembled.In the third stage the car is tested. There are two yards, one for parking the chassis and other for parking the cars waiting for testing. There are n manufacturing lines for making chassis, m assembly lines for making cars and p testers for testing. Consider that
every chassis line produces 3 chassis per second, and every assembly line makes 2 cars per second, and every tester tests 5 cars per second.
this program Simulate the whole manufacturing plant by creating m + n + p processes and using semaphores for synchronization. Print relevant details especially the producing and consuming events with the line no and the
sem value.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
-
- linux C编程实战这是一本关于linux编程的很好的书,里面有很多关于linux编程的方法与技巧。 ...
- GDB使用手册中文版电子版GDB使用手册中文版电子版,对linux下编程很有用的资料
- GCC 中文手册资料电子书GCC 中文手册资料电子书,要学linux得先学GCC呀。很重要的东西。 ...
- make中文手册电子书make中文手册电子书电子版,对学linux的同学很有帮助的资料
- Linux常用命令全集.CHM包含了各种linux常用命令,以chm格式整理,方便查阅学决,确实是学好linux的好资料 ...
- Linux 内核注释Linux 内核注释 万丈高楼平地起,没有搞不定的东西. 只有你付出 就一定成功. ...
- Linux学习笔记(自己的心得)Linux笔记Linux笔记Linux笔记Linux笔记
- linux操作系统实验指导linux操作系统实验指导.CHM linux操作系统学习指南
- Linux基础命令教程.zipLinux基础命令教程,比较全!适合新手学习!
- linux常用commandlinux常用command linux常用command linux常用command linux常用command 电子书 ...
-
- linux3.rarLINUX视频教程3
- linux1.rarLINUX视频教程,分一,二,三,四,四个部分,全部下载后解压缩就可以 ...
- linux2.rarLINUX视频教程2
- linux.rarGNU/Linux编程指南(入门、应用、精通),清华大学出版社,很不错的书,很实用的源代 ...
- 一个类似QQ的软件源码.rarMyICQ是一套公开源代码的即时通讯软件,包括服务器端和客户端,可以用于互联网或局域 ...
- raw_socket.zip示范了Unix和Linux下如何利用Raw Socket构造伪装的TCP、IP、UDP的包 ...
- ppt.rarlinux培训资料,这可是花钱才能得到的东西呢,
- unix_msg.zip使用消息队列的例子
- linux-2.4.20.tar.gzLINUX 2.4.20 源代码 学LINUX的人很有用哦
- threads-2.0.tar.gz多线程库