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

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

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

  • 针对遥感影像的光谱信息进行分类,并评价分类精度。但需要人为调整数组的大小,来控制输入变量,将训练样本和检验样本存为.txt格式的文件,执行即可得到分类后属于各个...
    针对遥感影像的光谱信息进行分类,并评价分类精度。但需要人为调整数组的大小,来控制输入变量,将训练样本和检验样本存为.txt格式的文件,执行即可得到分类后属于各个类别的概率,以及混淆矩阵。-Spectral imaging for remote sensing information classification, and to evaluate the classification accuracy. However, the need to artificially adjust the size of the array to control input variables, the training samples and the samples tested for the depositors. Txt files, the implementation can be sorted and the probability of belonging to each category, as well as the confusion matrix.
    2023-01-30 01:55:03下载
    积分:1
  • 关于物流配送的一套非常好的源代码,已在多家企业使用
    关于物流配送的一套非常好的源代码,已在多家企业使用-on logistics distribution of a very good source, the number of enterprises to use
    2022-03-11 05:29:44下载
    积分:1
  • MongoDB封装库
    接口都是char*或string 或vector,方便操作, 包括数据库初始化,更换数据,查找所有数据库的名字,创建集合,更新一条记录,插入记录,更新记录,删除记录,删除集合等;
    2022-08-16 14:11:03下载
    积分:1
  • the upload process is a small C as a tool for the graphics program. I improved s...
    本上传的小程序是用C++为工具的图形程序。 本人经过改良使之变的很小,很简短。-the upload process is a small C as a tool for the graphics program. I improved so that they become very small, very brief.
    2023-05-03 01:25:02下载
    积分:1
  • OMap Touch panel driver in WinCE 6.0 platform
    OMap Touch panel driver in WinCE 6.0 platform
    2023-05-10 01:20:03下载
    积分:1
  • 是用VC写的,能对图象进行简单处理,不是很复杂!..
    是用VC写的,能对图象进行简单处理,不是很复杂!.. -written by VC can easily proceed image,not complicate.
    2022-01-25 22:35:09下载
    积分:1
  • voice codec plugin for winamp.
    selever api 帮助文档 大家来下啊-Help selever api to everyone under the ah
    2022-11-22 15:35:03下载
    积分:1
  • 该文件是用来对窗体的打印   手表定理是指一个人有一只表时,可以知道现在是几点钟,而当他同时拥有两只表时却无法确定。两只表并不能告诉一个人更准确的时间,反而会让...
    该文件是用来对窗体的打印   手表定理是指一个人有一只表时,可以知道现在是几点钟,而当他同时拥有两只表时却无法确定。两只表并不能告诉一个人更准确的时间,反而会让看表的人失去对准确时间的信心。你要做的就是选择其中较信赖的一只,尽力校准它,并以此作为你的标准,听从它的指引行事。记住尼采的话:“兄弟,如果你是幸运的,你只需有一种道德而不要贪多,这样,你过桥更容易些。” 如果每个人都“选择你所爱,爱你所选择”,无论成败都可以心安理得。然而,困扰很多人的是:他们被“两只表”弄得无所,心身交瘁,不知自己该信仰哪一个,还有人在环境、他人的压力下,违心选择了自己并不喜欢的道路,为此而郁郁终生,即使取得了受人瞩目的成就,也体会不到成功的快乐。      手表定理在企业经营管理方面给我们一种非常直观的启发,就是对同一个人或同一个组织的管理不能同时采用两种不同的方法,不能同时设置两个不同的目标。甚至每一个人不能由两个人来同时指挥,否则将使这个企业或这个人无所适从。手表定理所指的另一层含义在于每个人都不能同时挑选两种不同的价值观,否则,你的行为将陷于混乱。-the document was used to print the forms watches theorem refers to a person with a table, they can know it is a few minutes and when he has failed to Table 2 to determine. Table 2 does not tell a more accurate time, we would give people a look at the exact right time to lose confidence. You ought to do is to choose the more reliable one, and make every effort to calibrate it, and take it as your standard, and obey its guidelines. Remember Nietzsche"s words : "Brothers, if you are lucky, you only have a moral and
    2022-11-20 21:00:03下载
    积分:1
  • VB series, the flower procedures, which are incomplete, and can change their own...
    VB编的电子琴程序,内容不完整,可以自己改成自己的软件-VB series, the flower procedures, which are incomplete, and can change their own software
    2022-08-13 06:47:42下载
    积分:1
  • 一个可以测试cmd命令的软件,使用起来十分方便
    一个可以测试cmd命令的软件,使用起来十分方便-a software can test cmd command
    2022-02-28 20:43:29下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载