-
通过研究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
-
一个微型操作系统源码
一个微型操作系统源码-a micro-source operating system
- 2022-04-23 22:33:06下载
- 积分:1
-
application bankers algorithm to solve deadlock
应用银行家算法解决死锁问题-application bankers algorithm to solve deadlock
- 2022-08-20 00:09:14下载
- 积分:1
-
一个用java实现的解决理发师睡觉问题的代码
一个用java实现的解决理发师睡觉问题的代码-used to achieve a solution to the problem of sleep Barber code
- 2022-02-05 01:35:41下载
- 积分:1
-
Bochs is a highly portable open source IA
Bochs is a highly portable open source IA-32 (x86) PC emulator
written in C++, that runs on most popular platforms. It includes
emulation of the Intel x86 CPU, common I/O devices, and a custom
BIOS. Currently, Bochs can be compiled to emulate a 386, 486,
Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE,
SSE2 and 3DNow! instructions. Bochs is capable of running most
Operating Systems inside the emulation including Linux, DOS,
Windows 95/98 and Windows NT/2000.
Bochs was written by Kevin Lawton and is currently maintained by
the Bochs project at "http://bochs.sourceforge.net".
- 2022-02-03 13:51:22下载
- 积分:1
-
基于FREESCALE的MXL的启动代码PPCBOOT文本文件
基于FREESCALE的MXL的启动代码PPCBOOT文本文件-Based on Freescale MXL of the startup code PPCBoot text file
- 2022-01-21 04:37:27下载
- 积分:1
-
Orange s:一个操作系统的实现(书附源码)chapter6.rar
Orange s:一个操作系统的实现(书附源码)chapter6.rar-Orange" s: an operating system implementation (source code attached to the book) chapter5.rar
- 2022-01-31 18:40:29下载
- 积分:1
-
tc Treasury under the mouse to see it!
tc下鼠标库,看看吧!-tc Treasury under the mouse to see it!
- 2023-04-26 16:00:03下载
- 积分:1
-
To an algorithm of optimizing which the process dispatcher of the operating syst...
针对操作系统的进程调度而设计的一个优化算法.-To an algorithm of optimizing which the process dispatcher of the operating system designed
- 2022-10-04 04:35:03下载
- 积分:1
-
To achieve a number of memory page replacement algorithm, the best replacement a...
实现了几种内存页面置换算法,有最佳置换算法和先进先出置换算法,还有LRU置换算法。-To achieve a number of memory page replacement algorithm, the best replacement algorithm and FIFO replacement algorithm, as well as LRU replacement algorithm.
- 2022-01-21 20:25:53下载
- 积分:1