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

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

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

  • 定时关机程序
    这是一款小巧的定时关机程序,点击隐藏后可通过快捷键Ctrl+Alt+G返回前台。在编辑框中输入分钟数,按下定时按钮即可实现定时关机
    2022-04-29 22:46:15下载
    积分:1
  • VC 语音识别
    第一次上传,VC的语音识别,你可以预先定义想要识别的东西,保存在内存中,也可自己弄配置文件,运行程序后,对麦克风说预先输入的文字,识别出来,若不是预先输入的文字,也能识别
    2022-02-05 04:28:42下载
    积分:1
  • software is a highly common positions management software, software support mult...
    软件是一款通用性极强的仓管理软件,软件支持多仓库管理支持全键盘操作;软件支持入库、出库、退库、调库、借出、归还、盘点等多项货物操作流程,各种数据可以自动转换为EXCEL数据格式。软件提供了完备的帐务系统,可以随时查询或打印月记帐、日记帐。能自动对库存超限的商品报警,多种报表功输出功能,让你的仓库管理工作轻松自如。软件可以多台电脑联网使用,数据共享,同时操作各项软件功能。-software is a highly common positions management software, software support multiple warehouse management support full keyboard operation; Software support for the arsenal and out of the hangar and refunding, transfer bank lending, restitution, and a number of other goods inventory operating processes, data can be automatically converted to Excel data format. Software provide a complete accounting system, ready for print or on account journals. Automatically unlimited right of goods inventory report, a variety of statements power output, allow you to a warehouse management effortless. Software can be multi-use computer networking, data sharing, while operating various software functions.
    2022-02-21 22:58:57下载
    积分:1
  • windows OEM信息显示
    windows OEM信息显示-windows OEM message
    2023-02-20 11:35:04下载
    积分:1
  • 一个编写Plugin技术的源码
    一个编写Plugin技术的源码-a prepared Plugin technology FOSS
    2022-03-29 21:07:32下载
    积分:1
  • 基于boost的asio库的半异步半同步的网络框架可以用来实现Server和Client...
    基于boost的asio库的半异步半同步的网络框架可以用来实现Server和Client-Based on boost‘s asio library of semi-asynchronous network of semi-synchronous framework can be used to achieve the Server and Client
    2023-08-01 08:40:03下载
    积分:1
  • 快捷键的使用,为了给菜单提供一个稳定的界面,还要为菜单添加快捷键...
    快捷键的使用,为了给菜单提供一个稳定的界面,还要为菜单添加快捷键-shortcuts use, in order to provide a stable menu interface, but also add to the menu shortcuts
    2022-06-18 07:36:13下载
    积分:1
  • Given a connected weighted undirected graph, find the minimum spanning tree grap...
    给出一个连通带权的无向图,找出该图的最小生成树。并带有问题的详细描述及测试数据。-Given a connected weighted undirected graph, find the minimum spanning tree graph. With a detailed description of the problem and the test data.
    2022-05-08 15:47:03下载
    积分:1
  • GDI绘图
    基于GDI的图形程序设计:画点,线,面和立体的茶壶在windows窗体。
    2023-06-17 20:00:06下载
    积分:1
  • 操作系统中的页面调度(先进进出,最近很少使用算法,最佳算法等等,操作系统中比较重要的算法)...
    操作系统中的页面调度(先进进出,最近很少使用算法,最佳算法等等,操作系统中比较重要的算法)-operating system pages Scheduling (advanced access, recently rarely used algorithm, the best algorithms and so on the operating system more important algorithm)
    2022-12-21 18:10:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载