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

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

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

代码说明:

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

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

发表评论

0 个回复

  • Zhi LRU replacement pages with FIFO
    页面置换之LRU与FIFO-Zhi LRU replacement pages with FIFO
    2022-08-21 11:47:56下载
    积分:1
  • 32位寄存器的VHDL的原代码下载,COOLCOOLCOOL
    32位寄存器的VHDL的原代码下载,COOLCOOLCOOL-32-bit register of the original VHDL code download, COOLCOOLCOOL
    2023-04-29 20:45:02下载
    积分:1
  • 银行家算法是避免死锁的算法,是最经典的,欢迎下载
    银行家算法是避免死锁的算法,是最经典的,欢迎下载-Banker
    2022-03-21 00:23:11下载
    积分:1
  • 哈工大课程设计,虚拟磁盘的设计和实现
    哈工大操作系统课程设计,虚拟磁盘的设计和实现-HIT operating system design, virtual disk design and the realization of
    2022-07-19 12:21:31下载
    积分:1
  • uCos II移植到C51 ,最小多任务适时
    uCos II移植到C51 ,最小多任务适时系统-uCos II transplanted into C51, the smallest multi-tasking system in due course
    2022-10-31 13:40:03下载
    积分:1
  • 书  名: unix和shell程序设计权威教程 出 版 社: 清华大学出版社   者: [美]佛努丹,吉尔伯格著 本书介绍了unix...
    书  名: unix和shell程序设计权威教程 出 版 社: 清华大学出版社 作  者: [美]佛努丹,吉尔伯格著 本书介绍了unix操作系统和shell编程两个部分的知识。前一部分全面讲解了unix操作系统,包括unix操作系统、vi和ex编辑器、文件系统与文件操作权限、以及各种unix实用程序;后一部分深入介绍了各种类型的unix shell编程,涵盖了korn shell、c shell等主要的shell类型。本书采用可视化讲解方法,全书包含大量的图、表、代码清单、脚本和代码示例,可有效帮助读者理解所介绍的内容;各章章末还配备了相应的复习题、练习题和上机实习等资料,以帮助读者巩固所学的知识。 -Title : unix shell design and authoritative guide publishers : Tsinghua University Press Author : [U.S.] Naodan Dover, Jierbage book, the book on the unix operating system and shell programming two parts of the knowledge. First part of a comprehensive account of unix operating systems, including unix operating system, and ex vi editor. file system and file manipulation authority, and various unix utilities; latter part of the in-depth briefings on the various types of unix shell programming, covering the korn shell. c shell, and other major type of shell. The book on the visual method, the book contains a large number of graphs, charts, code lists, scripts and code examples, ca
    2022-07-12 03:10:45下载
    积分:1
  • 由超
    C#编写的超小的操作系统,有兴趣的可以下载研究一下,-prepared by the ultra-small operating system, are interested in the study can be downloaded,
    2022-03-21 14:35:55下载
    积分:1
  • Sourcecode of the Linux
    Sourcecode of the Linux-011 with detailed chinese annotation,it s verygood and worth reading.
    2023-01-08 03:05:04下载
    积分:1
  • 此代码为PXA270的EBOOT代码,代码包含了所有启动的信息.
    此代码为PXA270的EBOOT代码,代码包含了所有启动的信息.-This code for the PXA270
    2022-03-17 14:15:31下载
    积分:1
  • 一个简单的文件
    一个简单的文件系统-a simple file system
    2022-02-03 02:42:17下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载