-
通过研究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
-
c语言编写的tc下串口通讯原程序,其中包括串口的设置,串口接收数据,串口发送数据!...
c语言编写的tc下串口通讯原程序,其中包括串口的设置,串口接收数据,串口发送数据!-c tc language of the original Serial communications procedures, including serial configuration, serial data receiver, Serial sent the data!
- 2022-01-25 16:23:20下载
- 积分:1
-
进程调度
进程调度-process scheduling dddddddddddddddddddddddddddddddd
- 2022-04-20 00:06:08下载
- 积分:1
-
RTEMS a very good open
rtems一个相当优秀的开源嵌入式操作系统,用winrar解压后将扩展名后的_去掉,再解压就行-RTEMS a very good open-source embedded operating system, with WinRAR decompression after the extension removed _ and then decompress on the line
- 2022-06-19 00:39:08下载
- 积分:1
-
WINCE寄存器读写工具源码
Wince对CPU寄存器的直接读写
方便驱动开发的朋友调试开发
- 2022-09-16 11:40:05下载
- 积分:1
-
微软可访问接口
Microsoft accessible接口的delphi实现-Microsoft accessible interface delphi realize
- 2022-01-26 14:34:21下载
- 积分:1
-
Orange s:一个操作系统的实现(书附源码)chapter2.rar
Orange s:一个操作系统的实现(书附源码)chapter2.rar-Orange" s: an operating system implementation (source code attached to the book) chapter2.rar
- 2023-01-12 20:15:03下载
- 积分:1
-
bankers algorithm. Resolve Deadlock
银行家算法.解决死锁问题-bankers algorithm. Resolve Deadlock
- 2022-04-17 09:22:05下载
- 积分:1
-
硬盘引导记录手册OS
硬盘引导记录手册OS-MSDOS,windows,windows NT,Linux系统硬盘引导流程-hard disk boot record manual OS-MSDOS, windows, windows NT, Linux system hard disk boot process
- 2022-02-21 16:47:46下载
- 积分:1
-
the procedures on the topic of : process management
本次程序的题目为:进程管理――支持多个进程并发运行的简单的进程管理模拟系统,对本实验的分析要求是:⑴系统中的同步机构采用信号量上的P、V操作的机制;⑵控制机构包括阻塞和唤醒操作;⑶时间片中断处理程序处理模拟的时间片中断;⑷进程调度程序负责为各进程分配处理机;⑸根据用户的需求来创建n个进程(n为即满足用户需求,又不超出系统可容的最大进程数),各进程互斥地访问使用临界资源 S1、S2;⑹使用动态优先数(如:随阻塞次数的增加而减小优先数,以提高其优先权);⑺进程结束后应能够撤消;⑻进程间能实现“发送”和“接收”两个消息缓冲通信操作;⑼系统在运行过程中随机打印出各进程的状态变换过程、系统的调度过程及公共变量的变化情况,在一个进程运行完毕,进入完成状态后,可以将该进程撤消,也可以动态的创建另一个新的进程。-the procedures on the topic of : process management-- to support multiple concurrent processes running a simple process management simulation system for the analysis of the experimental requirements are : 1 system of institutions using synchronous signals on the amount of P, V operation of the mechanism; 2 control agencies, including obstruction and awaken operation ; 3-time interrupt handling procedures-time simulation of interruption; 4 process scheduler is responsible for the allocation process processors; together according to the user"s needs to create process n (n that meet user needs, without exceeding the system can accommodate
- 2022-03-13 01:19:06下载
- 积分:1