登录
首页 » 操作系统 » 分享一个模拟生产者消费者的小程序

分享一个模拟生产者消费者的小程序

于 2022-10-22 发布 文件大小:1.36 MB
0 73
下载积分: 2 下载次数: 1

代码说明:

实验目的进程同步是操作系统多进程/多线程并发执行的关键之一,进程同步是并发进程为了完成共同任务采用某个条件来协调他们的活动,这是进程之间发生的一种直接制约关系。本次试验是利用信号量进行进程同步。实验软件环境VC++或者Linux操作系统实验内容• 生产者进程生产产品,消费者进程消费产品。 • 当生产者进程生产产品时,如果没有空缓冲区可用,那么生产者进程必须等待消费者进程释放出一个缓冲区。 当消费者进程消费产品时,如果缓冲区中没有产品,那么消费者进程将被阻塞,直到新的产品被生产出来。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MS-DOS源代码v1.0v2.0
    软研究院杰出工程师、总经理Roy Levin透露,“感谢Computer History Museum项目,这些珍贵的源代码得以保留,并提供给技术社区。”这些源代码的查看地址:MS DOS 1.1和2.0、Word for Windows 1.1a。打算下载这部分代码的用户必须同意将其用于非商业用途,同时也不会被发布到互联网的其它任何地方。
    2023-01-07 21:25:03下载
    积分:1
  • FireXOS the design and implementation of major systems introduced FireXOS task s...
    FireXOS的设计与实现,主要介绍FireXOS系统的任务调度程序,图形设置的实现方法与原理!-FireXOS the design and implementation of major systems introduced FireXOS task scheduling procedures, graphic settings to achieve the method and principle!
    2022-02-05 12:56:35下载
    积分:1
  • T-Kernel Shell Sample
    T-Kernel Shell Sample-T-Kernel Shell Sample
    2022-04-30 13:36:50下载
    积分:1
  • bankers algorithm, against textbook example of the Solution
    银行家算法,针对课本例子的求解-bankers algorithm, against textbook example of the Solution
    2022-03-02 01:30:47下载
    积分:1
  • n/b
    很好用的DOS工具,可以在XP下面启动到DOS方式 具体内容可以参考代码-n/b
    2022-03-24 18:10:32下载
    积分:1
  • 双飞燕a4 双飞燕a4 双飞燕a4 双飞燕a4 双飞燕a4
    双飞燕a4 双飞燕a4 双飞燕a4 双飞燕a4 双飞燕a4 -Shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4 shuangfeiyan a4
    2022-10-04 14:55:04下载
    积分:1
  • 新版本发布之为0.6.5.0。它的基础上有点不到100和…
    New Kolibri version 0.6.5.0 released. It s based on a bit less than hundred and a half revisions, including many changed and additions for both kernel and applications. Most noticeable is read ability from NTFS partitions, kernel support for programs and drivers packed with KPACK, functions to change cursors from the application side. Desktop picture should now look more attractive since new smoothing algorithm is used. Talking about programs changing we can mark KFAR (copy files, create folders), FASM (fixes for output generation), TINYPAD (work with mutliple files, change encoding, dynamic memory allocation). Changes have also been made to more than 50 other programs.
    2023-05-02 04:55:06下载
    积分:1
  • heycacher高性能缓存程序(源代码)1。所有文件美国..
    HeyCacher 高性能缓存方案(带源码) 1. 文件的所有权益归上传用户所有 2. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途 3. CSDN下载频道仅提供交流平台,并不能对任何下载内容负责 4. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。 5. 本站不保证本站提供的下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。 -HeyCacher high performance caching program (with source code) 1. All documents uploaded to the interests of users 2. rights without the consent of the owner shall document the contents of the diversion of commercial uses three or profits. CSDN download channel only provide a platform for the exchange, and not for any download for four. download documents if violations or inappropriate content. Please contact us, we immediately corrected. 5. The site does not guarantee that the site provides resources to download the accuracy, security and integrity. Users assume the same time not by the use of these resources to download their own and other people have any form of injury or loss.
    2022-07-20 18:30:44下载
    积分:1
  • UC/OS 例程 ,大家可以通过这些例程了解到UC/OS
    UC/OS 例程 操作系统,大家可以通过这些例程了解到UC/OS-UC/OS operating system routines, we can through these routines that UC/OS
    2023-07-28 09:00:05下载
    积分:1
  • FIFO 排序
    1.请参阅字符串: 1 ~ 2002.内存引用次数: 至少 20000 次3.在物理内存中的帧的数目: 10、 20、 30、 40、 504.有两个测试引用字符串:(1) 随机: 任意选择一个数字为每个引用。(2) 局部性: 模拟函数调用。每个函数调用可以引用一个子集1/4 ~ 1/2 字符串 (字符串的长度可以是随机的)。5.硬件支持位: 引用位和修改位(1) 硬件将自动设置这两个位。(2) 是一个内存中的页将被修改的概率 p。P 的值将是 0.05、 0.1、 0.15、 0.2、 0.25。
    2022-06-26 01:03:18下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载