登录
首页 » 操作系统 » 通过研究Linux的线程机制和信号量实现读者写者(Reader

通过研究Linux的线程机制和信号量实现读者写者(Reader

于 2022-02-06 发布 文件大小:7.59 kB
0 108
下载积分: 2 下载次数: 1

代码说明:

通过研究Linux的线程机制和信号量实现读者写者(Reader-Writer)问题并发控制。 1)写-写互斥:不能有两个写者同时进行写操作; 2)读-写互斥:不能同时有一个线程在读,而另一个线程在写; 3)读-读允许:可以有一个或多个读者在读; 4)读者优先的附加限制:如果读者申请进行读操作时已有另一个读者正在进行读操作,则该读者可直接开始读操作; 5)写者优先的附加限制:如果一个读者申请进行读操作时已有另一个写者在等待访问共享资源,则该读者必须等到没有写者处于等待状态后才能开始读操作。 -By studying the Linux thread mechanism and semaphores realize readers who write (Reader-Writer) the issue of concurrency control. 1) to write- write mutex: Can not write at the same time there are two write operations 2) read- write mutex: Can not have a thread at the same time in reading and writing another thread 3) Reading- Reading of permit: can have one or more readers read 4) the priority of additional restrictions readers: If the readers apply for a read operation, there was another reader being read, the reader can be directly started reading operation 5) to write additional priority Restrictions: If an application for a reader reading write operation has been in waiting for another visit to a shared resource, the read

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

发表评论

0 个回复

  • 串口的vc演示程序,和调试助手类似哦,比较超值啊
    串口的vc演示程序,和调试助手类似哦,比较超值啊-Vc serial demo program, and debug similar aides Oh, ah Comparison Value
    2022-02-16 08:11:35下载
    积分:1
  • AVR 128 Processor dev source
    AVR 128 Processor dev source -128 AVR dev source Processor
    2023-02-28 05:00:04下载
    积分:1
  • 模拟的进程调用
    模拟操作系统的进程调用-simulated the process of operating system calls
    2022-11-20 07:50:03下载
    积分:1
  • 嵌入式中的fat32和fat16源代码(完全版)
    嵌入式系统中的fat32和fat16源代码(完全版)
    2023-04-11 00:15:03下载
    积分:1
  • AU1100嵌入式处理器lcd显示驱动程序
    AU1100嵌入式处理器lcd显示驱动程序-Lcd display embedded processor AU1100 driver
    2023-06-17 23:50:03下载
    积分:1
  • 课程设计中的内存管理源代码
    操作系统课程设计中的内存管理源代码和可执行文件,可用于操作系统课程设计,操作系统实验, 有助于进一步学习操作系统和理解操作系统。 操作系统中存储管理的功能: 1、地址映射(逻辑地址——>主存物理地址)     由操作系统中的装入程序loader来完成(静态或动态)。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-05-15 17:49:33下载
    积分:1
  • 新版本发布之为0.6.5.0。它的基础上有点不到100和…
    New Kolibri version 0.6.5.0 released. It s based on a bit less than hundred and a half revisions, including many changed and additions for both kernel and applications. Most noticeable is read ability from NTFS partitions, kernel support for programs and drivers packed with KPACK, functions to change cursors from the application side. Desktop picture should now look more attractive since new smoothing algorithm is used. Talking about programs changing we can mark KFAR (copy files, create folders), FASM (fixes for output generation), TINYPAD (work with mutliple files, change encoding, dynamic memory allocation). Changes have also been made to more than 50 other programs.
    2023-05-02 04:55:06下载
    积分:1
  • 这个项目很好
    这个东西很好
    2023-02-21 08:35:03下载
    积分:1
  • a simple process of learning to create programs
    一个简单的学习进程创建程序-a simple process of learning to create programs
    2022-05-13 19:58:27下载
    积分:1
  • 大量常用的windows窗口控件,实用方便
    大量常用的windows窗口操作控件,实用方便-A large number of commonly used windows controls window operations, practical convenience
    2023-01-26 21:05:04下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载