-
通过研究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
-
DOS
DOS - ç ,它的内核也是FreeDOS的内核。并在此基础上进行了一定的修改,使其更加实用。 FreeDOS的是项目设计
提供替代到MS - DOS,PC的DOS的和DR - DOS的自由 。-DOS-C started in 1988 as an experiment in writing device drivers in C for
Microsoft s MS-DOS. Both block and character device drivers were written,
along with special C data structures to match the MS-DOS request packet. It
was then recognized that using the same techniques, an operating system
could be written that would take advantage of the C language features and
would require much less time to develop than the traditional assembly
language techniques. Although UNIX had proven this earlier, it was not
tried with a traditional pc operating system.
At this time, a minimal operating system using the device drivers written
earlier along with a new 8086 interrupt API was developed. It was called
XDOS and proved to be a functional operating system. This new operating
system was used to develop booting techniques and a C library SDK was
dev
- 2023-09-06 14:00:04下载
- 积分:1
-
利用简单的结构和控制方法模拟进程结构、进程状态和进程控制。...
利用简单的结构和控制方法模拟进程结构、进程状态和进程控制。-The use of a simple structure and control simulation of process structure, process status and process control.
- 2022-08-25 15:11:54下载
- 积分:1
-
Jungo WinDriver,专业的驱动者。
Jungo Windriver, professional driver maker.
- 2023-02-26 07:15:05下载
- 积分:1
-
该文件为LINUX系统的实验,初学者可以好好理解里该环境下的操作...
该文件为LINUX系统的实验,初学者可以好好理解里该环境下的操作-the document for Linux experiments, beginners can make good understanding of the environment Lane operation
- 2022-07-07 03:06:19下载
- 积分:1
-
c模拟时钟原程序
c模拟时钟原程序-c original analog clock procedures
- 2022-08-20 14:16:52下载
- 积分:1
-
昨夜调度程序
1.按输入创建工作队列
2打印输入作业
3.先来先服务
4.按到达时间排序
5.按先来先服务进行相关计算...
昨夜调度程序
1.按输入创建工作队列
2打印输入作业
3.先来先服务
4.按到达时间排序
5.按先来先服务进行相关计算-last night for a scheduler. According to the importation of work to create Print Queue 2 3 importation operations. First-come first-serve 4. On arrival time Scheduling 5. according to first-come first-related computing services
- 2022-11-24 11:20:04下载
- 积分:1
-
producers and consumers Buffer_pool.rar
生产者消费者Buffer_pool.rar-producers and consumers Buffer_pool.rar
- 2022-02-26 08:37:57下载
- 积分:1
-
DOS操用系统源代码,C语言编写,对操作系统的认识有很大的帮助....
DOS操用系统源代码,C语言编写,对操作系统的认识有很大的帮助.-DOS speaks system source code, C language, the awareness of the operating system will be very helpful.
- 2023-04-27 00:40:03下载
- 积分:1
-
经典的DOS操作系统源代码,对与学习还是很有用的。
经典的DOS操作系统源代码,对与学习还是很有用的。-Classic DOS operating system source code, or with the study very useful.
- 2023-07-18 13:35:02下载
- 积分:1