-
通过研究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
-
作业 调度源程 序作业调 度源程序
作业 调度源程 序作业调 度源程序-i am zhaozihangi am zhaozihangi am zhaozihangi am zhaozihangi am zhaozihang
- 2022-01-25 17:41:31下载
- 积分:1
-
some classics of the hash function and test data.
一些经典的HASH函数及测试数据-some classics of the hash function and test data.
- 2022-03-19 13:11:34下载
- 积分:1
-
《自己动手写操作系统》的随书附赠光盘,一步一步教你做操作系统的开发,想对操作系统有更深的人不妨...
《自己动手写操作系统》的随书附赠光盘,一步一步教你做操作系统的开发,想对操作系统有更深的人不妨
- 2022-10-05 14:05:04下载
- 积分:1
-
操作系统实验,编写程序实现银行家算法的C++代码
操作系统实验,编写程序实现银行家算法的C++代码-Operating system, experiment, write a program to achieve banker algorithm C++ code for
- 2022-06-20 11:18:46下载
- 积分:1
-
一个餐厅的管理系统 一个餐厅的管理系统 一个餐厅的管理系统...
一个餐厅的管理系统 一个餐厅的管理系统 一个餐厅的管理系统-A restaurant, a restaurant management system management system management system for a restaurant in a restaurant management system
- 2022-02-11 11:03:15下载
- 积分:1
-
FreeRTOS_STM32F1_MD中容量_Demo
在嵌入式领域中,嵌入式实时操作系统正得到越来越广泛的应用。采用嵌入式实时操作系统(RTOS)可以更合理、更有效地利用CPU的资源,简化应用软件的设计,缩短系统开发时间,更好地保证系统的实时性和可靠性。
- 2022-06-13 04:54:20下载
- 积分:1
-
Zhi LRU replacement pages with FIFO
页面置换之LRU与FIFO-Zhi LRU replacement pages with FIFO
- 2022-08-21 11:47:56下载
- 积分:1
-
线程安全的带索引功能的对象集合类,低层为STL。
线程安全的带索引功能的对象集合类,低层为STL。-Thread-safe functions with indexed collections of objects, the lower for the STL.
- 2023-03-27 16:10:03下载
- 积分:1
-
这是一个操作系统(计算机科学课程)的设计。它的功能…
这是一个操作系统(计算机系课程)的课程设计。它的功能是模拟文件管理,包括建立用户,建立文件并对文件设置属性.还包括对文件的添加,修改,删除等操作-This is an operating system (computer science courses) are designed. Its function is simulated document management, including the establishment of users, document also set up document attributes. The document also includes the addition, modification, deletion, etc
- 2022-02-04 05:04:46下载
- 积分:1