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

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

于 2023-03-25 发布 文件大小:1.47 kB
0 203
下载积分: 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 个回复

  • 多文档 多文档
    多文档 多文档-more documents and mo re documents
    2022-01-30 20:59:02下载
    积分:1
  • 嵌入式WINCE微调控件编程使用,用EVC实现
    嵌入式WINCE微调控件编程使用,用EVC开发实现-Embedded WINCE programming controls the use of fine-tuning, using EVC realize development
    2022-10-14 00:10:04下载
    积分:1
  • windows rpc 调用源码
    windows rpc 调用源码-windows rpc called FOSS
    2022-03-12 15:04:37下载
    积分:1
  • 一个飞机票订票和退票系统。假设某民航机场有m个航次的班机,每个航次都只到达一个目的地,试为该机场售票处设计一个自动订票和退票系统。 该系统需要实现以...
    一个飞机票订票和退票系统。假设某民航机场有m个航次的班机,每个航次都只到达一个目的地,试为该机场售票处设计一个自动订票和退票系统。 该系统需要实现以下功能: (1) 订票:若该航次余票数大于等于客订票数,则在该航次的乘客表(按乘客姓氏字母词典顺序排列)中,插入订票乘客的信息项,并修改该航次有关数据,否则给出相应提示信息; (2) 退票:若退票数小于该乘客原订票数,则在相应的乘客表中找到该乘客项,修改该航次及乘客表中有关数据。当由于退票使得该乘客的订票数为零时,要从乘客表中撤销该乘客项;否则给出相应的提示信息; (3) 将某航次的余票数恢复初值为该航次的最大客票数; (4) 显示:显示该机场各航次班机的售票情况。-Booking air tickets and a refund system. Assuming there are m a civil airport voyage of the flights, each voyage only to reach a destination, the trial design for an automated airport ticket booking and refund system. The system needs to achieve the following functions: (1) booking: If the voyage than the number of votes greater than or equal to the number of passengers booking, the passenger in the voyage List (alphabetical by passengers dictionary order), insert the booking information of passengers, and modify the data of the voyage Otherwise, the corresponding message (2) Refund: If the refund is less than the number of votes of the original passeng
    2022-08-03 17:49:14下载
    积分:1
  • 2022-10-22 12:50:03下载
    积分:1
  • 潜入史系统中的图形库,资源加载的C程序, 非常使用
    潜入史系统中的图形库,资源加载的C程序, 非常使用-Graph library(load graph resources) of Embedded system, C source code
    2022-02-21 17:24:49下载
    积分:1
  • 一款接球游戏,游戏中使用DirectX 7,图形较为流畅,每秒高达50桢。具有较高的计算机人工智能.英文介绍:DX pong is a neat pong ga...
    一款接球游戏,游戏中使用DirectX 7,图形较为流畅,每秒高达50桢。具有较高的计算机人工智能.英文介绍:DX pong is a neat pong game that uses DirectX 7. I wrote it in just one day and the graphics are smooth - over 50 fps! There are sound FX too, but the best thing about the game is the computer AI. It doesn t simply chase the ball, it predicts the balls path even if it is going to bounce of several walls and moves accordingly. Clever AI doesn t mean it is impossible to beat - it means it acts like a human player making the game more fun. So - have fun!-DX pong is a neat pong game that uses DirectX 7. I wrote it in just one day and the graphics are smooth- over 50 fps! There are sound FX too, but the best thing about the game is the computer AI. It doesn t simply chase the ball, it predicts the balls path even if it is going to bounce of several walls and moves accordingly. Clever AI doesn t mean it is impossible to beat- it means it acts like a human player making the game more fun. So- have fun!
    2022-03-14 03:16:04下载
    积分:1
  • 本程序可以实现对串口的简单操作,祥细的功能可以从代码中得到,要是有什么问题可以从中得到帮助。...
    本程序可以实现对串口的简单操作,祥细的功能可以从代码中得到,要是有什么问题可以从中得到帮助。-this procedure can be achieved on a simple serial port operation, the wound from the functional code can be, if any problem will be able to receive help.
    2022-07-10 19:31:27下载
    积分:1
  • c++编程实现,一些小技巧,小功能
    c++编程实现,一些小技巧,小功能-c++ programming, a number of tips, small features! ! ! !
    2023-06-04 06:50:03下载
    积分:1
  • Netscape Portable Runtime (NSPR) wince version provides a platform
    Netscape开发的一个基础库,本人移植了wince版本-Netscape Portable Runtime (NSPR) wince version provides a platform-neutral API for system level and libc like functions. The API is used in the Mozilla clients and many of Red Hat s, Sun s, and other software offerings.
    2022-01-30 13:50:04下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载