登录
首页 » Windows开发 » 用信号量实现读者和写者的程序

用信号量实现读者和写者的程序

于 2022-04-22 发布 文件大小:193.43 kB
0 141
下载积分: 2 下载次数: 1

代码说明:

读者-写者问题的读写操作限制(包括读者优先和写者优先): 写-写互斥,即不能有两个写者同时进行写操作。 读-写互斥,即不能同时有一个线程在读,而另一个线程在写。 读-读允许,即可以有一个或多个读者在读。 读者优先的附加限制:如果一个读者申请进行读操作时已有另一个读者正在进行读操作,则该读者可直接开始读操作。 写者优先的附加限制:如果一个读者申请进行读操作时已有另一写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态才能开始读操作。

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

发表评论

0 个回复

  • 这个工具是MTeX套装中的一个重要命令行工具,可用于删掉tex文件中的整行注释,从而为tex文件减肥。...
    这个工具是MTeX套装中的一个重要命令行工具,可用于删掉tex文件中的整行注释,从而为tex文件减肥。-This tool is packaged MTeX an important command-line tool that can be used to delete tex document notes the entire line, so as to lose weight tex file.
    2022-04-23 03:56:54下载
    积分:1
  • 本程序实现了对ADXL加速度计在Delphi的…读出的所有方面
    This program implements all aspects of readout of ADXL accelerometer in Delphi. It enables plotting and checking of output of typical ADXL 202 accelerometer. You can set RS via ini file and add more functionality Do not work with ADXR gyros.
    2022-11-02 02:30:02下载
    积分:1
  • C语言函数手册.chm.rar
    C语言函数手册.chm.rar-C language function manual. Chm.rar
    2022-08-03 11:49:58下载
    积分:1
  • java struts的经典教材之一,有学习此意想的同志有必要好好研究...
    java struts的经典教材之一,有学习此意想的同志有必要好好研究-java struts one of the classic textbook, this study intended comrades should properly study
    2023-06-07 21:05:03下载
    积分:1
  • 窗口自动伸缩,注要是用VC++6.0来的一个程序,也用到了MFC架构的一些注要内容,希望能够给大家一些参考。...
    窗口自动伸缩,注要是用VC++6.0来开发的一个程序,也用到了MFC架构的一些注要内容,希望能够给大家一些参考。-Automatic retractable window, note if using VC++ 6.0 to develop a process, also used in the MFC framework to the contents of some note, I hope everyone can give some reference.
    2022-02-21 13:39:47下载
    积分:1
  • 使用API VB6源杀进程
    Kill Process using api windows VB6 source
    2022-04-11 22:13:56下载
    积分:1
  • CONNECT TO MACHINE FINGER
    在学生的日常考勤的处理的主要要求是准确,快速,准确的,因为信息是为学校的管理非常重要,尤其是对学科学习活动的一种形式的信息。在数据处理中由手动的装置的过程中,还存在被发现其中该收集数据,加工精度学生出勤数据的难度从而导致信息延迟呈现许多障碍。所以,有必要构建一个专门用于管理它的信息系统。上座率也有助于教师的教学活动,很容易每天都出现,即使已作出命令的问题提供了评估和学校的安全性也有所帮助,但也有学生谁从安全监控逃脱,和的百分比每天或每个月学生考勤控制不佳,本次抽查我用GET REAL TIME用手指机TC100....好运气
    2022-10-20 00:15:03下载
    积分:1
  • 动态规划
    动态规划----矩阵连乘问题 动态规划法是解决问题的一种方法。它不规定为了得到结果需如何将问题划分为子问题的固定方法,而是按不同输入给出问题的具体实例的子问题划分方法,然后再进行运算、解答问题。 矩阵连乘问题的主要思想如下: 1)设置大小为连乘个数的方阵 2)主对角线上方各元素Di,j(ij)记录获得该最小工作量矩阵分组的第一组的最后一个矩阵的序列号 最后通过下方元素可知最终结果的分组方式。-dynamic programming matrix continually multiply-dynamic programming problem is a problem-solving method. It does not require the results need to be how to divide the problems of the sub- problems fixed, but different input given by the specific example of the problem partition method, and then calculate, and answer questions. Matrix continually multiply the main idea is as follows : 1) the installation of the size of continually multiply the number phalanx 2) above the main diagonal elements Di, j (ilt; J) Matrix Mi continually multiply to the smallest workload 3) below elements Di, j (IGT; J) the record was the smallest workload of a matrix of the first group of a matrix of the final sequence, followed by the final element of the final results of the
    2022-06-17 10:27:59下载
    积分:1
  • 本人编写的一个反汇编外壳.感觉写得很烂
    本人编写的一个反汇编外壳.感觉写得很烂-I prepared a compilation of anti-shell. Written poor-quality feel
    2022-10-22 20:50:03下载
    积分:1
  • 杭州电子科技大学的一些题源代码,可以参考下
    杭州电子科技大学的一些题源代码,可以参考下-Hangzhou University of Electronic Science and Technology of the source code of a number of questions, you can refer to the following
    2022-08-14 02:22:29下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载