资源列表
producer-customer
- 生产者和消费者的源代码 可用于在linux下运行-Producers and consumers
mutex
- 功能是利用互斥体来保护同时访问的共享资源,包含创建者创建两个线程来访问共享值,解除程序释放对对象的引用,在两个线程终止之前可暂停主调者-Function is to use a mutex to protect simultaneous access to shared resources.Includes the creation of two threads to access a shared value, lifting procedures to release references
os11
- 这是个典型的生产者与消费者问题,用的是PV操作实现的程序!-This is a typical problem of producers and consumers, using a PV operating procedures to achieve!
OS-process-
- 该段代码为操作系统进程调度的算法分析,内含三种算法FCFS、SJF、时间片轮转,在程序结束之前会对三种算法进行简单的分析。-The sections of the code for the operating system process scheduling algorithm analysis, containing three algorithms FCFS, SJF, time slice rotation, a simple analysis is interested in the
duoxiancheng
- 多线程操作的一个案例编写,主要是关于线程互斥的。教学类-Case of multi-threaded operation of a write, mainly on the thread mutually exclusive. Teaching Class
det
- 多线程求行列式的值 输入参数分别为 线程数 行列式阶数 行列式数据- Multithreading Determinant value of the input parameter is the number of threads determinant determinant of order data
Processor-scheduling-algorithm
- 1.设定系统中有五个进程,每一个进程用一个进程控制块表示。 2. 输入每个进程的“优先数”和“要求运行时间”, 3.为了调度方便,将五个进程按给定的优先数从大到小连成就绪队列。用一单元指出队列首进程,用指针指出队列的连接情况。 4. 处理机调度总是选队首进程运行。采用动态优先数算法,进程每运行一次优先数就减“1”,同时将运行时间减“1”。 5.若要求运行时间为零,则将其状态置为“结束”,且退出队列。 6.运行所设计程序,显示或打印逐次被选中进程的进程名以及进程控制块的动态变化
test1
- 用高级语言编写和调试一个进程调度程序,以加深对进程的概念及进程调度算法的理解。-High-level language by writing and debugging a process scheduler in order to deepen their understanding of the concept of the process and understanding the process of scheduling algorithm.
Example7_8
- 设计一个模拟车辆通过路口的程序。用来编写同步执行线程用了两个方法。-failed to translate
Limited-CPU
- 整个解决方案的流程很简单,只有两步: 1.获得要限制CPU 占用率的进程的句柄; 2.每隔 50ms,依次调用 NtSuspendProcess 和 NtResumeProcess。比如第 50ms 调用了 NtSuspendProcess,第100ms就调用NtResumeProcess。第150ms调用NtSuspendProcess, 第 200ms就调用NtResumeProcess,如此类推下去。-The entire process of the solution
THINNING
- thinning is used to eliminate unwanted noise
threadsconcurrency
- 进程互斥与同步,用WindowsAPI编程,生产者消费者问题的C++实现-threads concurrency