登录
首页 » Windows开发 » 创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问...

创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问...

于 2023-03-25 发布 文件大小:1.47 kB
0 205
下载积分: 2 下载次数: 1

代码说明:

创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。-Create a console process, this process contains n threads. Use of these n threads to represent n-reader or writer. Each thread according to the requirements of the corresponding test data file read and write operations. Semaphore mechanism are used to achieve the reader and the writer first priority.

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

发表评论

0 个回复

  • “跑快”是民间流传的一种常见的扑克牌游戏,52张牌为…
    “跑得快”是流传于民间的一种常见的扑克牌游戏,52张牌分配给东、南、西、北四家,每家13张,最快出掉手中牌者胜出,所胜点数为其他家手中所剩的牌的张数。出牌组合包括: (1) 单张,大小排列为 3 4 5 6 7 8 9 10 11(J) 12(Q) 13(K) 1(A) 2 (2) 炸弹,4张同点为炸弹,大点压小点,可压任意组合或单张; (3) 同花顺,同一种花色,5连张为同花顺,起张大且张数大时压其它同花顺,也可压其它任何顺; (4) 顺,不同花色,5连张为顺,起张大时压其它顺; (5) 三同,3张牌同点,大点压小点; (6) 对,两张牌不同点为对。 根据上述组合,出牌时能压上家时必须压,否则违规,为简单起见,每回合开始时出牌都从北家开始,并按北、西、南、东次序出牌,某轮次最大的一家再出牌。编写程序实现洗牌发牌,并模仿四家进行游戏,最后统计赢家点数。 -"Run fast" is the spread in the private sector a common poker games, 52 cards assigned to the east, south, west, north four, each 13, the fastest card out off the hands of those who win, the victory points for other homes in the hands of the cards the number of sheets remaining. A brand portfolio includes: (1) leaflets, size of the arrangement for the 3 4 5 6 7 8 9 10 11 (J) 12 (Q) 13 (K) 1 (A) 2 (2) bombs, four bombs with the point, big point pressure dots can be any combination of pressure, or leaflets (3) with a straight flush, the same color, five even Zhang flush, since Da is lar
    2022-01-21 02:14:12下载
    积分:1
  • 这是一个C++的简单银行存取系统,包含有MFC界面,以及数据库的数据...
    这是一个C++开发的简单银行存取系统,包含有MFC界面,以及数据库的数据-This is a C++ developers access to a simple banking system, includes MFC interfaces, and database data
    2022-01-26 06:31:10下载
    积分:1
  • First, the problem Description: The number of polynomial input and stored in mem...
    一、问题描述:将多个多项式输入并存储在内存中,然后对多项式进行加,减,乘等基本运算。 二、实行数据方法:用单链表来储存多项式,每个节点存储一项-First, the problem Description: The number of polynomial input and stored in memory, and then make additions to the polynomial, subtraction, multiplication and other basic computing. Second, the implementation of data Methods: Single-Linked List to store polynomials, each node storing a
    2022-01-26 20:27:48下载
    积分:1
  • 监视飞机上的小程序。监视,包括本地文件,…
    监视本机状态的小程序。包括监视本地文件、进程、CPU、网络、Email等状态。并把监视结果发给外地的服务器。 需要装WinpCap才能运行。-surveillance aircraft on the small program. Surveillance including local files, processes, CPU, network, etc. Email state. Surveillance and field results to the server. Loaded WinpCap need to run.
    2023-03-24 18:00:05下载
    积分:1
  • 对话框加位图bitmap_preview_dialog_source
    对话框加位图bitmap_preview_dialog_source-dialog increase bitmap bitmap_preview_dialog_source
    2022-03-12 17:06:51下载
    积分:1
  • some project that tracking the budget system
    some project that tracking the budget system
    2022-09-14 20:25:03下载
    积分:1
  • 一个用VB写的四则计算器源代码. 功能:1、实现简单的四则运算 2、加入了每日一贴的功能,为了练习每日一贴程序的编制方法,其实本程序完全没有必要加入此功能 3、...
    一个用VB写的四则计算器源代码. 功能:1、实现简单的四则运算 2、加入了每日一贴的功能,为了练习每日一贴程序的编制方法,其实本程序完全没有必要加入此功能 3、程序的难点在于对每个按键的判断,其实是比较麻烦,但技术含量不高,仔细看都能看懂 -a VB wrote four calculators source code. Features : 1, the simple four Operational 2, joined a daily functions, in order to practice a daily process of the preparation method, the procedure is absolutely not necessary to include this feature 3, the procedure is difficult for everyone by Bond judgment, which is troublesome, but not high technological content, carefully read all understand
    2022-02-12 08:41:00下载
    积分:1
  • 类似金山词霸生词本的DAO数据库代码,实现的功能:把数据库中的记录显示到列视中,可以进行记录添加、删除、修改、查询等操作。...
    类似金山词霸生词本的DAO数据库代码,实现的功能:把数据库中的记录显示到列视中,可以进行记录添加、删除、修改、查询等操作。-similar free email wordlists DAO Database of the code, the functions : database of the records shows that, as shown, can be recorded to add, delete, modify, search operation.
    2022-03-28 19:17:31下载
    积分:1
  • As an industrial control software, an integral part of this software can be used...
    为一个工业控制软件的一个组成部分,此软件可用于控制电镀生产线-As an industrial control software, an integral part of this software can be used to control the electroplating production line
    2023-02-17 10:15:04下载
    积分:1
  • WebDownLoader 下载者附程序
    WebDownLoader 下载者附程序-That those who download the WebDownLoader
    2023-03-12 09:10:03下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载