-
通过研究Linux的线程机制和信号量实现读者写者(Reader
通过研究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
- 2022-02-06 09:26:49下载
- 积分:1
-
机票预定系统,用VB开发,SQL为后端数据库平台,包括设计文档。...
机票预定系统,用VB开发,SQL为后端数据库平台,包括设计文档。-excellent
- 2022-05-31 20:54:42下载
- 积分:1
-
编程计算磁盘上(或某一目录下)所有文件的平均长度。 编程计算磁盘上(或某一目录及其各级子目录)每目录的平均文件个数。...
编程计算磁盘上(或某一目录下)所有文件的平均长度。 编程计算磁盘上(或某一目录及其各级子目录)每目录的平均文件个数。-programming calculated on the disk (or a directory) all the average length of documents. Programming calculated on the disk (or levels of a directory and its subdirectories), the average per-directory document number.
- 2022-03-22 18:55:05下载
- 积分:1
-
学习MFC的好东西
学习MFC的好东西-learning MFC good things
- 2022-07-22 08:27:01下载
- 积分:1
-
certification process synchronization signal quantity of C Program
验证进程同步的信号量方法的C程序-certification process synchronization signal quantity of C Program
- 2022-03-16 04:56:50下载
- 积分:1
-
本程序设计的是一个小型商店每天记的流水帐管理程序,没有具体到销售的每一样商品,只是记载了每一笔的收入和支出情况。经过简单扩充就可以成为一个完整的商店销售管理系统...
本程序设计的是一个小型商店每天记的流水帐管理程序,没有具体到销售的每一样商品,只是记载了每一笔的收入和支出情况。经过简单扩充就可以成为一个完整的商店销售管理系统。-The program design is a small store in mind the itemized account in next day management processes, not specifically to the sale of every commodity, is only documented in each of the income and expenditure. After simple expansion can become a complete shop sales management system.
- 2022-11-29 19:25:03下载
- 积分:1
-
QNX 操作系统下 Freescale MPC8641DHPCN 开发板的板级支持包
QNX 操作系统下 Freescale MPC8641DHPCN 开发板的板级支持包-QNX operating system Freescale MPC8641DHPCN development board of the Board Support Package
- 2022-01-22 00:03:44下载
- 积分:1
-
操作系统课程设计
操作系统课程设计- The operating system curriculum designs
- 2022-03-02 09:36:47下载
- 积分:1
-
API Monitoring Unleashed!!!
API Monitoring Unleashed!!!
- 2022-07-07 09:30:29下载
- 积分:1
-
进程调度 先来先服务 最大优先数 最短执行时间
进程调度 先来先服务 最大优先数 最短执行时间-Process scheduling
- 2022-02-07 19:39:40下载
- 积分:1