-
cnix.rar
cnix.rar
- 2022-01-25 23:45:09下载
- 积分:1
-
磁盘调度的三种方法的其中一种用C语言实现
磁盘调度的三种方法的其中一种用C语言实现-Disk scheduling one of three methods using C language
- 2022-02-21 03:38:03下载
- 积分:1
-
银行家算法,还不错。有好的请与我联系!
银行家算法,还不错。有好的请与我联系!-bankers algorithm, is not bad. Good please contact me!
- 2022-02-16 03:06:59下载
- 积分:1
-
一个简单的例子,为多线程和信号
此示例实现阅读室模型。假设有 8 个席位,在阅览室里,在等候室 5 个座位。Readers" 的行动会像这样: 1) 一位读者在前台服务注册他的信息,他进入阅览室之前。他在他离开后注销。前台服务只能处理一个 time.2 的一位读者) 如果一个读者发现阅读房间里满是,他会在等待 room.3 等) 如果在候诊室里没有席位,他将 leave.*The 主线程将启动 20 个读取器线程。读取器线程将重复上述行为。读者的行为记录打印在屏幕上和写到一个文件中。
- 2022-01-22 03:57:30下载
- 积分:1
-
通过研究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
-
ucosII的33个经典例题,均调试通过的,学习ucosII的捷径,强烈推荐!因文件太多,分成了5个上载,请大家谅解!...
ucosII的33个经典例题,均调试通过的,学习ucosII的捷径,强烈推荐!因文件太多,分成了5个上载,请大家谅解!-ucosII of 33 classic examples, both through debugging and learning ucosII shortcut, strongly recommended! Because too many documents, divided into five available, please understanding!
- 2022-10-27 23:10:03下载
- 积分:1
-
This is a process of the operating system's scheduling experiment, the sched...
这是一个关于操作系统进程调度的实验,采用的是优先权调度算法-This is a process of the operating system"s scheduling experiment, the scheduling algorithm is priority
- 2022-02-10 12:01:34下载
- 积分:1
-
设备管理主要包括设备的分配和回收、同时实现设备独立性。假定模拟系统中有A(3台)、B(2台)、C三种设备,采用安全分配方式。...
设备管理主要包括设备的分配和回收、同时实现设备独立性。假定模拟系统中有A(3台)、B(2台)、C三种设备,采用安全分配方式。-Device Manager includes equipment distribution and recovery, while achieving device independence. Simulation system assumes that there are A (3 units), B (2 units), C three kinds of equipment, the introduction of safety distribution.
- 2022-09-18 15:10:03下载
- 积分:1
-
很好的代码来看吧!
很好的代码来看吧!-good look at the code!
- 2022-03-26 04:25:58下载
- 积分:1
-
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{...
1.实验目的: 模拟实现银行家算法,用银行家算法实现资源分配。 2.实验内容: 设计五个进程{P0,P1,P2,P3,P4}共享三类资源{A,B,C}的系统,{A,B,C}的资源数量分别为10,5,7。进程可动态地申请资源和释放资源,系统按各进程的申请动态地分配资源。要求程序具有显示和打印各进程的某一时刻的资源分配表和安全序列;显示和打印各进程依次要求申请的资源号以及为某进程分配资源后的有关资源数据。 3.程序设计和说明: 函数说明:anquan( )判断给某个进程请求后系统是否安全,anquan1()判断当前系统是否安全。GetAll()取得所有进程的的各个资源数据。详细说明请参见附录中的程序的文档说明。-1. The experiment : Simulation Algorithm bankers, bankers algorithm with the allocation of resources. 2. Experiment : Design 5 (process P0, P1, P2, P3, P4) (resource sharing three categories A, B, C), (A, B, C) amount of resources to 10,5,7. Dynamic process could apply to the resources and the release of resources, according to the system processes the application to dynamically allocate resources. Procedures required to display and print the process of a moment of the distribution of resources and safety sequence; Display and print the process followed for seeking resources, as well as a process of distribution of resources in the resource data. 3. Program design and description : F
- 2022-04-07 18:24:35下载
- 积分:1