-
通过研究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
-
the linux source code is very comprehensive ~ ~ basic integrity of the use of a...
这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自测试~但就算用来做参考资料也是非常好的-the linux source code is very comprehensive ~ ~ basic integrity of the use of a translation of c ~ due to the time I did not personally test to be used to do it even if reference is very good
- 2022-03-17 08:23:38下载
- 积分:1
-
操作系统设计与实现源码
操作系统设计与实现源码-Design and Implementation of the operating system source code
- 2022-04-01 01:46:24下载
- 积分:1
-
C++写的操作系统原理及实现,模拟页面置换算法OPT的源码
C++写的操作系统原理及实现,模拟页面置换算法OPT的源码-C++ Write the operating system and realize the principle of simulated OPT page replacement algorithm for the source
- 2022-01-24 08:50:42下载
- 积分:1
-
北航操作系统课程设计所需源代码,包含window和linux操作系统的各4个试验...
北航操作系统课程设计所需源代码,包含window和linux操作系统的各4个试验-BUAA operating system source code required for curriculum design, including window and linux operating system in all four test
- 2022-06-19 09:38:16下载
- 积分:1
-
微软可访问接口
Microsoft accessible接口的delphi实现-Microsoft accessible interface delphi realize
- 2022-01-26 14:34:21下载
- 积分:1
-
采用静态优先数的方法,编写一进程调度程序模拟程序,进程状态为就绪、运行、阻塞三种。模拟程序只对你所设置的“虚拟PCB”进行相应的调度模拟操作,即每发生“调度”时...
采用静态优先数的方法,编写一进程调度程序模拟程序,进程状态为就绪、运行、阻塞三种。模拟程序只对你所设置的“虚拟PCB”进行相应的调度模拟操作,即每发生“调度”时,显示出当前“PCB名字”、优先数、运行时间等,而不需要对系统中真正的PCB等数据进行修改。-priority number using the static method, the preparation process of scheduling a process simulation program, the process in place for the state, running, blocking three.PCBPCBPCB
- 2022-09-05 20:10:03下载
- 积分:1
-
err
在s3c2410下移植的LWIP 1.11 协议栈,操作系统ucosII,网络芯片是CS8900,移植经过测试可以使用。这些让大家可以在其上移植WebServer等服务,希望有能移植成功的发份代码与pk2794263@163.com感激不尽-err
- 2023-06-19 06:15:04下载
- 积分:1
-
ucosII的33个经典例题,均调试通过的,学习ucosII的捷径,强烈推荐!因文件太多,分成了5个上载,请大家谅解!...
ucosII的33个经典例题,均调试通过的,学习ucosII的捷径,强烈推荐!因文件太多,分成了5个上载,请大家谅解!-ucosII of 33 classic examples, both through debugging and learning ucosII shortcut, strongly recommended! Because too many documents, divided into five available, please understanding!
- 2022-10-27 23:10:03下载
- 积分:1
-
应用rapidemo RAPI函数copydevicetopc
rapidemo rapi函数的应用CopyDeviceToPC-Application rapidemo rapi function CopyDeviceToPC
- 2022-01-25 20:11:11下载
- 积分:1