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

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

于 2023-06-17 发布 文件大小:8.34 kB
0 143
下载积分: 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 个回复

  • attention : 1. OS.jar Java package for two executable files. Due to the time and...
    注意: 1. OS.jar为Java打包可执行文件 2. 由于时间,和界面空间问题,每个进程的资源拥有情况没有详细列明.如果要认真检查 程序的正确性,可以重新编译运行,然后查看Dos界 面下的输出.因为Dos界面下会输出 每个进程的资源情况(包括每个进程对每类资源的最大需求,分配情况,和所欠资源情况. 3. 资源设置中,进程设置应小于100个,资源类数应小于20个.-attention : 1. OS.jar Java package for two executable files. Due to the time and space interface, each process of the availability of resources, no details. If we were to check the correctness of procedures can recompile running, and then checking Dos interface output . because Dos output interface will process each of the resources (including each process for each category of the biggest resources demand, distribution, and outstanding resources. 3. resources set up, the process set up should be less than 100, the resource shall be less than 20.
    2023-04-06 21:55:03下载
    积分:1
  • 哈工大课程设计,虚拟磁盘的设计和实现
    哈工大操作系统课程设计,虚拟磁盘的设计和实现-HIT operating system design, virtual disk design and the realization of
    2022-07-19 12:21:31下载
    积分:1
  • 使用配置: a) 如果将安装在网站的根路径下,直接拷贝即可使用; b) 如果将安装在一个虚拟路径下,请将bin、CuteSoft_Client、...
    使用配置: a) 如果将系统安装在网站的根路径下,直接拷贝即可使用; b) 如果将系统安装在一个虚拟路径下,请将bin、CuteSoft_Client、Templates、Uploads文件夹及移动到根路径下。 c) 如果WEB服务器和数据库服务器不在一台服务器上,请将Web.Config中的 -err
    2022-03-22 10:31:13下载
    积分:1
  • GFSINS system angular velocity solver, based on the six
    无陀螺捷联惯导系统角速度解算,基于六加速度计立方体模型。-GFSINS system angular velocity solver, based on the six-accelerometer cube model.
    2022-07-24 10:50:38下载
    积分:1
  • producers and consumers Buffer_pool.rar
    生产者消费者Buffer_pool.rar-producers and consumers Buffer_pool.rar
    2022-02-26 08:37:57下载
    积分:1
  • 小程序
    操作系统小程序--银行家算法-OS small programs-- bankers Algorithm
    2022-07-26 21:53:34下载
    积分:1
  • 在LPC2148上面能够正常运行的UCOS
    在LPC2148上面能够正常运行的UCOS操作系统-In the LPC2148 above the normal operating system running uCOS
    2022-04-17 21:14:51下载
    积分:1
  • Book Lending Management
    开发图书借阅管理系统的必要原代码,希望对大家有所帮助-Book Lending Management
    2022-01-25 22:26:56下载
    积分:1
  • Clock算法的Java实现
    操作系统Clock算法的Java实现,包括三个文件: Node_Clock.java,作业封装类。Clock.java,实现Clock算法。Test.java,main。编的不太好,但是清楚明白,供大家借鉴。                                                             
    2022-04-25 14:54:47下载
    积分:1
  • 能够实现中页面置换算法(先进先出算法)
    能够实现操作系统中页面置换算法(先进先出算法)-to achieve operating system page replacement algorithm (SJF)
    2022-01-26 05:03:40下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载