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

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

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

  • 内存监视
    设计一个内存监视器,能实时地显示当前系统中内存的使用情况,包括系统地址空间的布局,物理内存的使用情况;能实时显示某个进程的虚拟地址空间布局和工作集信息等。 
    2023-02-15 17:30:03下载
    积分:1
  • 小型文件管理
    操作系统的课程设计--利用Linux的api设计模拟一个小型的磁盘文件管理系统
    2023-04-17 01:50:03下载
    积分:1
  • 多用户 :usr1, …, usr8 (1
    多用户 :usr1, …, usr8 (1-8个用户) 多级目录:可有多级子目录; 具有login (用户登录) 系统初始化(建文件卷、提供登录模块) 文件的创建: create 文件的打开:open 文件的读:read 文件的写:write -Multi-user: usr1, ..., usr8 (1-8 users) multi-level directory: can have the subdirectory level have a login (user login) system initialization (construction paper roll, providing login module) file creation: create Open file: open the document read: read a file write: write
    2022-01-27 10:54:16下载
    积分:1
  • 2004.7.6日上传的一个有错这是2004.7.7日重新传的。这是本人用汇编和C混合编成的一个32...
    2004.7.6日上传的一个有错这是2004.7.7日重新传的。这是本人用汇编和C混合编成的一个32-bit多任务、多线程的操作系统内核。现在暂时不提供原代码但可以下载用。谁有兴趣且觉得自己有能力和我共同完善它最终实现真正的中国本土的高端操作系统请和我联系:yaocong@mail.china.com -2004.7.6 date passes on has mistake this is 2004.7.7 dates repasses on. This is myself uses the assembly and C mix forming 32-bit multi- duties, the multi-thread operating system essence. Now temporarily does not provide the original code but to be allowed to download uses. Who has the interest also thought oneself has the ability and I consummates it finally to realize the genuine Chinese native place high end operating system together please to relate with me: Yaocong@mail.china.com
    2023-05-02 10:10:03下载
    积分:1
  • VC++ to achieve the relationship between producers and consumers! (OS)
    VC++实现生产者与消费者关系!(操作系统OS)-VC++ to achieve the relationship between producers and consumers! (OS)
    2022-03-03 04:39:04下载
    积分:1
  • 用c++编的银行家算法
    用c++编的银行家算法-With c++ Made the banker s algorithm
    2022-01-26 05:36:31下载
    积分:1
  • 银行家算法 已分配和可利用的 利用银行家算法可以避免死锁的发生...
    银行家算法 已分配和可利用的 利用银行家算法可以避免死锁的发生-Banker" s algorithm has been allocated and the use of banker" s algorithm can be used to avoid the occurrence of deadlock
    2023-01-11 21:50:04下载
    积分:1
  • 串行端口。枚举和FIFO的控制。
    Serial ports. Enumeration and FIFO controls.
    2022-08-15 06:36:50下载
    积分:1
  • wince串口、GPS信号处理,GPRS拨号上网,已经测试过.
    wince串口、GPS信号处理,GPRS拨号上网,已经测试过.-wince serial, GPS signal processing, GPRS dial-up has been tested.
    2022-03-24 04:32:37下载
    积分:1
  • Power generation CPLD family of the former one
    发电CPLD家族的前十分之一MAXⅡ器件动态功耗很低,所以低功耗运行。MAX II系列价格低廉,功耗是MAX 3000A系列的十分之一。
    2022-07-10 18:31:38下载
    积分:1
  • 696518资源总数
  • 104444会员总数
  • 15今日下载