登录
首页 » 操作系统 » 用信号量来实现读者-写者问题

用信号量来实现读者-写者问题

于 2022-08-21 发布 文件大小:15.49 kB
0 80
下载积分: 2 下载次数: 1

代码说明:

调试程序使其在读者优先模式下可以运行并且能实现基本的功能得出正确的结果:能够实现读写互斥,写写互斥,读读不互斥,一个进程结束能够唤醒等待队列中的进程(先读者队列后写着队列)完善功能:由用户决定写者向缓冲区中写入的内容,读者能够读出并显示出来;当缓冲区中没有数据时,读者要等待,直到缓冲区中有数据才能读根据“读者优先”加以改变,增加一个“写者优先”模式,并且由用户来选择模式

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

发表评论

0 个回复

  • 的内存与回收
    用于展示window操作系统内存分配和回收机制,是学习操作系统内存和分配的经典案例。工程基于windows API编程,可以供学习分享。
    2022-03-26 13:11:49下载
    积分:1
  • 页面置换算法模拟的简单实现,及相关过程.
    页面置换算法模拟的简单实现,及相关过程.-page replacement algorithm simulation of a simple realization, and the related process.
    2023-01-18 12:05:03下载
    积分:1
  • 利用labview开发的信号采集,能够很好的进行仿真信号采集!...
    利用labview开发的信号采集系统,能够很好的进行仿真信号采集!-Use of LabVIEW development of signal acquisition system, able to simulate a very good signal acquisition!
    2022-03-21 18:39:06下载
    积分:1
  • windows open source code Microsoft Windows is a complex operating system. It off...
    windows开源代码 Microsoft Windows is a complex operating system. It offers so many features and does so much that it s impossible for any one person to fully understand the entire system. This complexity also makes it difficult for someone to decide where to start concentrating the learning effort. Well, I always like to start at the lowest level by gaining a solid -windows open source code Microsoft Windows is a complex operating system. It offers so many features and does so much that it s impossible for any one person to fully understand the entire system. This complexity also makes it difficult for someone to decide where to start concentrating the learning effort. Well, I always like to start at the lowest level by gaining a solid
    2022-04-07 22:29:59下载
    积分:1
  • 这是一个(计算机科学课程)的设计。它的功能…
    这是一个操作系统(计算机系课程)的课程设计。它的功能是模拟文件管理,包括建立用户,建立文件并对文件设置属性.还包括对文件的添加,修改,删除等操作-This is an operating system (computer science courses) are designed. Its function is simulated document management, including the establishment of users, document also set up document attributes. The document also includes the addition, modification, deletion, etc
    2022-02-04 05:04:46下载
    积分:1
  • MSDOS 2.0 源代码
    MSDOS 2.0 操作系统 (内核和基本实用工具) 的源代码。这就是现在由微软公司官方许可的公共 (非专业用途) 可用源代码的 MSDOS 2.0 。
    2022-01-31 16:18:33下载
    积分:1
  • 文件复制器 2007.07.28.0最新VB源代码 地狱门神(F.R.C.) 适用范围 Windows环境下,本地存储设备的文件夹之间。 测试环...
    文件复制器 2007.07.28.0最新VB源代码 地狱门神(F.R.C.) 适用范围 Windows环境下,本地存储设备的文件夹之间。 测试环境 2007.07.27.0版,Windows XP SP2,一次复制文件量6.2万,大小11.5GB。 使用建议 如果需要使用本软件一次处理数量以万计算,大小以GB计算的文件,建议使用Visual Studio 2005集成环境调试运行,以发现并正确处理各种难以预料的异常,避免重复浪费时间。-Copy the file up-to-date browser 2007.07.28.0 hell god VB source code (FRC) the scope of application under the Windows environment, the local storage device between folders. Test environment 2007.07.27.0 version, Windows XP SP2, a copy volume of 62,000 documents, the size of 11.5GB. If you need to use the proposed use of the software first in order to deal with the number of million, and the size of the document calculated to GB, it is recommended to use Visual Studio 2005 integrated debugging environment to run to detect and correctly handle a variety of difficult to predict abnormal, avoid duplication of a waste of time.
    2023-09-05 01:25:02下载
    积分:1
  • 本书用大量的篇幅讲述了与计算机原理相关的条种编码方法,并通过数字逻辑电路(包括逻辑与开关,逻辑门电路与触发器,二进制加法器等)以及存储器、微处理器的形式、组织及...
    本书用大量的篇幅讲述了与计算机原理相关的条种编码方法,并通过数字逻辑电路(包括逻辑与开关,逻辑门电路与触发器,二进制加法器等)以及存储器、微处理器的形式、组织及发展阐述了编码的实现。此外,本书还涉及到计算机系统、操作系统、编程语言等的产生及发展,甚至对计算机图形化的相关技术也给了一个全面的描述。阅读本书,相信您会从它图文并茂的编排组织,通俗风趣的语言文字、简练丰富的背景知识中体会到作者超凡的智慧和深邃的学问。本书定会带你去畅游计算机内部世界并和你共同去探索编码的奥秘。本书适合各种技术背景的人阅读,并可作为高等院校计算机或非计算机专业的教材使用-This book with plenty of space to talk about with computer-related articles of the principle of encoding method, and through digital logic circuit (including logic and switches, logic gates and flip-flops, binary adder, etc.) as well as the memory, microprocessor form Organization and development on the realization of coding
    2022-03-05 03:56:59下载
    积分:1
  • 引导辅助程序
    操作系统引导辅助程序-operating system support procedures guide
    2023-07-26 01:50:03下载
    积分:1
  • 可用的s3c2440 bsp包,付有使用说明等文档!
    可用的s3c2440 bsp包,付有使用说明等文档!-Available s3c2440 bsp package, have to pay for use, such as document!
    2023-07-14 06:15:03下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载