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

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

于 2022-02-06 发布 文件大小:7.59 kB
0 136
下载积分: 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 个回复

  • c/c++虚拟机linux版本
    c/c++虚拟机linux版本-c/c Linux version of Virtual Machine
    2022-03-07 12:07:43下载
    积分:1
  • EOS is a major open
    EOS是一个主要用于教学的开源操作系统,它的源码风格是windows内核风格。EOS的整体结构简单,从boot、loader、kernel.dll到应用程序,结构清晰简单,但是功能内核功能也比较完整,源码总数为10000多行,比较适合初中级操作系统内核源码学习者。 与Linux0.11或0.12相比,EOS的内核的结构更加的模块化,结构比之清晰,是学习操作系统原理与内核分析研究的较好的工具。 -EOS is a major open-source operating system for teaching, and its style is windows kernel source code style. EOS" s overall structure is simple, from the boot, loader, kernel.dll to the application, the structure clear and straightforward, but the function of the kernel functions are relatively complete, a total of more than 10,000 source lines, more suitable for middle-class operating system kernel source code learners. 0.12, compared with Linux0.11 or, EOS of the core structure of a more modular structure than the clear, is to learn principles and core analysis of the operating system a better tool.
    2023-03-20 19:55:04下载
    积分:1
  • 通过对一个教学操作系统GEEKOS的编译过程,形成磁盘映射文件,并在Bochs模拟器下模拟启动,来了解操作系统的基本原理和系统的启动过程。...
    通过对一个教学操作系统GEEKOS的编译过程,形成磁盘映射文件,并在Bochs模拟器下模拟启动,来了解操作系统的基本原理和系统的启动过程。-Through a teaching operating system compiler GEEKOS process, the formation of disk mapping file, and restart Bochs emulator simulated, to understand the basic principles of operating systems and system start-up process.
    2022-05-30 02:35:50下载
    积分:1
  • 一个用 java 语言编写的操作系统课程设计 很经典希望对大家有帮助...
    一个用 java 语言编写的操作系统课程设计 很经典希望对大家有帮助-An operating system using java language curriculum design classic you want to help
    2023-08-22 05:45:04下载
    积分:1
  • C_进程调度.rar
    C_进程调度.rar-9 scheduling process. Rar
    2022-11-16 01:55:03下载
    积分:1
  • uCOS
    uCOS-II实例内核技术与应用实例。应用程序开发与调试。实时内核与应用程序框架结构分析-uCOS-II
    2022-11-20 17:15:03下载
    积分:1
  • 可用的s3c2440 bsp包,付有使用说明等文档!
    可用的s3c2440 bsp包,付有使用说明等文档!-Available s3c2440 bsp package, have to pay for use, such as document!
    2023-07-14 06:15:03下载
    积分:1
  • 操作系统模拟文件。
    功能要求 ①至少 支持普通文件和目录两种类型 支持普通文件和目录两种类型 支持普通文件和目录两种类型 支持普通文件和目录两种类型 支持普通文件和目录两种类型 支持普通文件和目录两种类型 ②创建新文件 创建新文件 ,删除已有文件 ,删除已有文件 ,删除已有文件 ,删除已有文件 ③根据文件名 根据文件名 (绝对路径)检索到相应 (绝对路径)检索到相应 (绝对路径)检索到相应 (绝对路径)检索到相应 (绝对路径)检索到相应 的文件 的文件 (/d0/d1/ /d0/d1//d0/d1/ /d0/d1//d0/d1/filename filenamefilenamefilenamefilename filename) ④支持的操作: 支持的操作: openopen open、closecloseclosecloseclose、read read 、writewrite ⑤至少 支持三层目录( 支持三层目录( 支持三层目录( /d0/d1/ /d0/d1//d0/d1/ /d0/d1//d0/d1/filename filenamefilenamefilenamefilename filename) ⑥能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 能读取外部提供的文件并存入到系统中(即从模拟磁盘空间之拷贝 文件 ) ⑦提供命令行界面,能够显示目录内容 和文件提
    2022-07-12 04:07:08下载
    积分:1
  • linux汇编语言
    linux汇编语言-linux assembly language
    2023-04-13 00:15:03下载
    积分:1
  • C_deadblocked和按优先数.rar
    C_deadblocked和按优先数.rar-C_deadblocked and by priority number. Rar
    2022-04-26 21:09:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载