-
线程创建
事件触发
线程同步
结束线程
线程创建
事件触发
线程同步
结束线程-Thread creation thread synchronization events to trigger the end of thread
- 2022-02-14 06:27:32下载
- 积分:1
-
一个线程池源码,AFX_THREADPOOLDLG_H__ABDABFCD_FD51_4556_8864_189C17F05527__INCLUDED...
一个线程池源码,AFX_THREADPOOLDLG_H__ABDABFCD_FD51_4556_8864_189C17F05527__INCLUDED-a thread pool source, AFX_THREADPOOLDLG_H__ABDABFCD_FD51_4556_8864_189C17F05527__INCLUDED
- 2022-05-25 17:52:22下载
- 积分:1
-
two experimental operating system : the process of scheduling strategy to achiev...
操作系统实验2:进程调度策略的模拟实现
1、 设计一个有 N个进程共行的进程调度程序。
2、 每个进程有一个进程控制块PCB来表示,进程控制块的格式为:
进程名
优先数
到达时间
需要运行时间
已占用CPU时间
进程状态
a) 进程优先数、需要运行时间、到达时间可以事先人为地指定,也可以随机产生,注意初始化上述数值时要尽量使进程并发执行,而不是按到达时间顺序调度。
b) 进程的运行时间以时间片为单位进行计算。
c) 进程状态分为就绪、运行、完成三种状态之,分别用W、R、F表示。
3、 进程调度规则如下:
a) 就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。
b) 如果运行一个时间片后,进程已占用 CPU时间达到所需要运行时间,则进程完成,撤销该进程。
c) 如果运行一个时间片后,进程已占用CPU时间还未达到所需要运行时间,即进程需要继续运行,将它插入就绪队列,队列重新排序,等待CPU。
d) 重复以上过程,直到所要进程都完成为止。
-two experimental operating system : the process of scheduling strategy to achieve a simulation. Design is a process of a total of N the process scheduler. 2, each process is a process control block to PCB said that the process control block format : process a few who arrived at the priority needs time to time running CPU time a state process) process priority number. need to run time, arriving in time prior to artificially designated, can also randomly generated, Initialization attention to the above values are to m
- 2022-02-20 17:25:28下载
- 积分:1
-
通过向Mode模块发送event来做状态迁移,Mode模块中有一个Matrix表,通过Matrix表来做出判断...
通过向Mode模块发送event来做状态迁移,Mode模块中有一个Matrix表,通过Matrix表来做出判断-through Mode modules make this event the movement Mode Module Matrix is a table through the Matrix to make a judgment Table
- 2022-05-20 04:48:23下载
- 积分:1
-
本代码穷举系统进程,然后可以杀死进程,用到了 CreateToolhelp32Snapshot 和一些排序操作,
本代码穷举系统进程,然后可以杀死进程,用到了 CreateToolhelp32Snapshot 和一些排序操作,-Exhaustive system process the code, and then kill the process, use the CreateToolhelp32Snapshot and some sort operation,
- 2022-07-04 09:17:57下载
- 积分:1
-
多线程范例,利用Windows+MFC开发,学习多线程的例子
多线程范例,利用Windows+MFC开发,学习多线程的例子-multithreading example, the use of Windows+ MFC development, learning multithreading example
- 2022-12-07 06:35:03下载
- 积分:1
-
操作系统经典的问题-生产者和消费者问题.C++编写.
操作系统经典的问题-生产者和消费者问题.C++编写.-OS classic problem-producer and consumer issues. C preparation.
- 2022-02-09 13:35:05下载
- 积分:1
-
创建、结束进程等操作
创建、结束进程等操作-creation, the end of the process, etc
- 2022-01-26 06:08:34下载
- 积分:1
-
这是一个关于线程并行与串行所用时间的比较(结合了win32更有实用性)...
这是一个关于线程并行与串行所用时间的比较(结合了win32更有实用性)-This is a thread of the serial and parallel time spent by the comparison (in the context of the win32 more practical)
- 2023-02-10 12:35:03下载
- 积分:1
-
Vb隐藏进程源代码,在任务管理器中隐藏进程,非常有用的
Vb隐藏进程源代码,在任务管理器中隐藏进程,非常有用的-Vb source code to hide the process in Task Manager to hide the process, very useful
- 2022-08-25 20:46:27下载
- 积分:1