登录
首页 » 操作系统 » 试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型...

试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型...

于 2023-06-17 发布 文件大小:8.34 kB
0 79
下载积分: 2 下载次数: 1

代码说明:

试验目的:通过研究Linux的线程机制和信号量实现生产者消费者问题的并发控制 说明:有界缓冲区内设有20个存储单元,放入/取出的数据项设定为1~20这20个整型数。 要求: (1)每个生产者和消费者对有界缓冲区进行操作后,即时显示有界缓冲区的全部内容.当前指针位置和生产者/消费者线程的标识符 (2)生产者和消费者各有两个以上 (3)多个生产者或多个消费者之间须共享对缓冲区进行操作的函数代码。-Test Objective : To study the Linux threading mechanism and signal to producers and consumers to achieve the concurrency control : a boundary buffer There are 20 storage units, Add/remove data items for a set of 20 ~ 20-integer. Requirements : (1) Each producer and consumer sector of the buffer zone is operated, immediately after the sector showed a buffer in its entirety. The current position and producer/consumer threads identifier (2) producers and consumers have two or more (3) A number of producers or many consumers to be shared between the right to operate the buffer function code.

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

发表评论


0 个回复

  • 采用高响比优先的业调度算法
    采用高响比优先的作业调度算法-sound than the high-priority scheduling algorithm
    2022-03-24 13:06:10下载
    积分:1
  • 控制光驱,可最小化的小程序
    控制光驱,可最小化的小程序-control drive, the smallest of the small programs
    2023-07-06 04:50:02下载
    积分:1
  • linux011源码注释 非常不错
    linux011源码注释 非常不错-linux011 very good source Notes
    2023-07-10 07:00:04下载
    积分:1
  • 采用最佳适应算法模拟实现内存管理
    采用最佳适应算法模拟实现内存管理-在VC++环境下编译通过,通过初始化空闲区、分配空闲区、回收空闲区实现模拟的内存管理。-best adaptation algorithm simulation memory management-the VC environment compile, free zone through the initialization, distribution idle, idle zones recovery simulation of memory management.
    2023-09-05 22:25:03下载
    积分:1
  • MAC OSX 下cocoa framwork程序开发示例,xcode
    MAC OSX 下cocoa framwork程序开发示例,xcode-MAC OSX program development under the cocoa framwork example, xcode
    2022-04-27 08:39:26下载
    积分:1
  • 经典的DOS源代码,对与学习还是很有用的。
    经典的DOS操作系统源代码,对与学习还是很有用的。-Classic DOS operating system source code, or with the study very useful.
    2023-07-18 13:35:02下载
    积分:1
  • kicq v0.3.0
    资源描述Linux上的ICQ(Open Source带全部源程序) Needs Qt 1.40+, KDE 1.0+, icqlib 0.1.3+
    2023-06-06 23:30:02下载
    积分:1
  • 文件复制器 2007.07.28.0最新VB源代码 地狱门神(F.R.C.) 适用范围 Windows环境下,本地存储设备的文件夹之间。 测试环...
    文件复制器 2007.07.28.0最新VB源代码 地狱门神(F.R.C.) 适用范围 Windows环境下,本地存储设备的文件夹之间。 测试环境 2007.07.27.0版,Windows XP SP2,一次复制文件量6.2万,大小11.5GB。 使用建议 如果需要使用本软件一次处理数量以万计算,大小以GB计算的文件,建议使用Visual Studio 2005集成环境调试运行,以发现并正确处理各种难以预料的异常,避免重复浪费时间。-Copy the file up-to-date browser 2007.07.28.0 hell god VB source code (FRC) the scope of application under the Windows environment, the local storage device between folders. Test environment 2007.07.27.0 version, Windows XP SP2, a copy volume of 62,000 documents, the size of 11.5GB. If you need to use the proposed use of the software first in order to deal with the number of million, and the size of the document calculated to GB, it is recommended to use Visual Studio 2005 integrated debugging environment to run to detect and correctly handle a variety of difficult to predict abnormal, avoid duplication of a waste of time.
    2023-09-05 01:25:02下载
    积分:1
  • 源代码的收入
    开源DOS的C代码源程序-revenue of C source code
    2022-12-19 22:25:04下载
    积分:1
  • C/C++虚拟机的实现的window版本
    C/C++虚拟机的实现的window版本-C/C virtual machine on the realization of the window version
    2023-06-09 20:10:05下载
    积分:1
  • 696518资源总数
  • 105179会员总数
  • 5今日下载