-
通过研究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
-
操作系统实验
资源描述实验一进程的同步.................................................................................................................. 1
1实验目的........................................................................................................................ 1
2实验内容........................................................................................................................ 1
实验二处理机调度.................................................................................................................. 3
1实验目的........................................................................................................................ 3
2实验内容........................................................................................................................ 3
实验三银行家算法...........................................................................................................
- 2022-09-02 03:10:05下载
- 积分:1
-
a simple core of the Minix operating system code, including all the underlying i...
一个简单的操作系统minix的核心代码,包括所有的底层实现和上层架构。-a simple core of the Minix operating system code, including all the underlying implementation and the upper echelons.
- 2022-01-28 14:34:09下载
- 积分:1
-
内存管理,虚拟内存的分配和回收
内存管理,虚拟内存的分配和回收-memory management, virtual memory allocation and recovery
- 2022-01-30 14:12:19下载
- 积分:1
-
国外的
国外的-C++ 200多个源码-foreign-C more than 200 FOSS
- 2022-03-22 14:31:17下载
- 积分:1
-
operating system source code integrity great secrets!
操作系统完整源代码大机密!-operating system source code integrity great secrets!
- 2023-03-23 19:15:03下载
- 积分:1
-
Used for computer and NI
用来实现计算机与NI-GPIB卡的通信,具备读写功能-Used for computer and NI-GPIB card communications, have to read and write functions
- 2022-12-13 05:35:03下载
- 积分:1
-
minix操作系统分析
minix操作系统分析-Minix operating system analysis
- 2022-05-18 17:13:24下载
- 积分:1
-
operating system test code
操作系统试验代码-operating system test code
- 2023-09-08 03:10:03下载
- 积分:1
-
c语言的小编译器,学习的好东东.
c语言的小编译器,学习的好东东.-small c language compiler, a good learning Wanton.
- 2022-03-03 00:30:16下载
- 积分:1