-
通过研究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
-
<自己动手写操作系统>源代码第4章,其中所有代码都已通过调试,之间包括可运行程序,直接下载到虚拟机上可以运行。...
源代码第4章,其中所有代码都已通过调试,之间包括可运行程序,直接下载到虚拟机上可以运行。- source code, Chapter 4, which have passed all of the code debugging, including operational procedures between the directly downloaded to the virtual machine can run.
- 2022-08-09 13:51:36下载
- 积分:1
-
C++写的操作系统原理及实现,模拟页面置换算法FIFO的源码
C++写的操作系统原理及实现,模拟页面置换算法FIFO的源码-C++ Write the operating system and realize the principle of simulated FIFO page replacement algorithm for the source
- 2022-05-24 18:38:44下载
- 积分:1
-
微软早期的一个操作系统[ 1 ]。0
Microsoft早期操作系统1[1].0-3.0全系列收藏版-Microsoft early one operating system [1] .0-3.0 full range of collectors edition
- 2022-02-02 02:43:51下载
- 积分:1
-
操作系统排序算法
操作系统排序算法-operating system Sorting Algorithm
- 2022-04-08 20:23:06下载
- 积分:1
-
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{...
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{A,B,C}的资源数量分别为10,5,7。进程可动态地申请资源和释放资源,系统按各进程的申请动态地分配资源。要求程序具有显示和打印各进程的某一时刻的资源分配表和安全序列;显示和打印各进程依次要求申请的资源号以及为某进程分配资源后的有关资源数据。 3.程序设计和说明: 函数说明:anquan( )判断给某个进程请求后系统是否安全,anquan1()判断当前系统是否安全。GetAll()取得所有进程的的各个资源数据。详细说明请参见附录中的程序的文档说明。-1. The experiment : Simulation Algorithm bankers, bankers algorithm with the allocation of resources. 2. Experiment : Design 5 (process P0, P1, P2, P3, P4) (resource sharing three categories A, B, C), (A, B, C) amount of resources to 10,5,7. Dynamic process could apply to the resources and the release of resources, according to the system processes the application to dynamically allocate resources. Procedures required to display and print the process of a moment of the distribution of resources and safety sequence; Display and print the process followed for seeking resources, as well as a process of distribution of resources in the resource data. 3. Program design and description : F
- 2022-04-07 18:24:35下载
- 积分:1
-
吉民人事管理系统 VB
开发较为完善的VB小程序,能够满足人事管理系统的基本操作。主要功能包括基本界面,基本人事档案管理,人员资料管理,工资发放管理,人员岗位管理等。
- 2022-07-14 23:36:21下载
- 积分:1
-
mc9328mx1的mem分配原代码,详细的配置
mc9328mx1的mem分配原代码,详细的配置-mc9328mx1 the mem allocation code, detailed configuration
- 2022-07-23 10:00:46下载
- 积分:1
-
android 操作系统英文开发文档说明
android 操作系统英文开发文档说明-android development documentation
- 2022-02-25 16:00:26下载
- 积分:1
-
惠普公司bios完整源代码大机密!
惠普公司bios完整源代码大机密!-HP bios integrity of the source code confidential big!
- 2022-01-24 18:01:16下载
- 积分:1