semaphore_sharedmenory_fork.tar.gz
文件大小: 2k
下载次数:4
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

源码售价: 5 个金币 积分规则     积分充值
资源说明: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.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
    
  • 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多线程库