-
Wrote it myself a desktop small ball program, every click of a button, there is...
自己写的一个桌面小球程序,每点击一次按钮,就有一个新的线程被建立,每个线程对应于一个运动的小球-Wrote it myself a desktop small ball program, every click of a button, there is a new thread is created, each thread corresponds to a movement of the small ball
- 2022-03-26 02:03:12下载
- 积分:1
-
使用IOCP实现的线程池管理,对线程很多的情况有用
使用IOCP实现的线程池管理,对线程很多的情况有用- Uses line regulation pond management which IOCP realizes, is
useful to line regulation very many situations
- 2022-03-16 21:18:22下载
- 积分:1
-
关于多线程的一个程序,主要是说明同步技术在多线程中的应用。...
关于多线程的一个程序,主要是说明同步技术在多线程中的应用。-On a multi-threaded program, mainly that synchronous technology in multi-threaded applications.
- 2022-01-25 15:26:52下载
- 积分:1
-
简单线程示例。适合初学者
简单线程示例。适合初学者-threads simple example. For beginners
- 2022-06-26 10:35:31下载
- 积分:1
-
windows message processing programming code, a simple message handling mechanism...
windows消息处理编程代码,简单的实现消息处理机制-windows message processing programming code, a simple message handling mechanism realize
- 2022-05-28 14:48:27下载
- 积分:1
-
利用多线程计算平方和 sum=1^2+2^2+3^2.....+n^2
利用多线程计算平方和 sum=1^2+2^2+3^2.....+n^2-The use of multi-threaded calculation of square and the sum = 1 ^ 2+ 2 ^ 2+ 3 ^ 2 .....+ N ^ 2
- 2022-08-21 11:15:33下载
- 积分:1
-
一个封装了线程模型的类
一个封装了线程模型的类-a package of thread-like model
- 2022-08-19 16:59:04下载
- 积分:1
-
windows用delphi监视进程运行
windows用delphi监视进程运行-windows monitors the advancement with delphi to move
- 2022-05-07 06:10:44下载
- 积分:1
-
bankers algorithm development to achieve vc need can be downloaded use
银行家算法的实现 vc++开发 有需要的可以下载使用-bankers algorithm development to achieve vc need can be downloaded use
- 2022-02-20 06:46:01下载
- 积分: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