-
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
-
a simple and easy to use and useful Visual C multithreading example,
一个简单易套用且实用的Visual C++多线程例子,-a simple and easy to use and useful Visual C multithreading example,
- 2022-02-06 20:18:47下载
- 积分:1
-
IO Completion Port to use examples of the basic IO Completion Ports API function...
IO完成端口使用事例, 对IO完成端口的基本API函数的使用范例来介绍IO完成端口的作用-IO Completion Port to use examples of the basic IO Completion Ports API function to use an example to introduce the role of IO Completion Ports
- 2023-01-23 23:35:03下载
- 积分:1
-
枚举系统当前进程源代码,可用于判断某个进程是否开始或者结束。...
枚举系统当前进程源代码,可用于判断某个进程是否开始或者结束。-current process enumeration system source code can be used to judge whether a particular process or ended.
- 2022-07-14 14:39:25下载
- 积分:1
-
Based on VC++
一个基于VC++的多线程编程的实例,可以直接运行,-Based on VC++
- 2022-03-11 10:58:29下载
- 积分:1
-
讲述在windows系统下,在vc环境下进行多线程编程
讲述在windows系统下,在vc环境下进行多线程编程-Described in the windows system, vc environment in multi-threaded programming
- 2022-10-28 17:10:03下载
- 积分:1
-
查看Windows下所有进程,即使这个进程被隐藏
查看Windows下所有进程,即使这个进程被隐藏-View Windows all process, even if the process was hidden! !
- 2022-03-18 09:06:32下载
- 积分:1
-
简单线程池的实现方法,包含一个主控线程池类ThreadPool和一个工作线程WorkThread...
简单线程池的实现方法,包含一个主控线程池类ThreadPool和一个工作线程WorkThread-simple thread pool method, including a master class ThreadPool thread pool, and a work-threaded WorkThread
- 2022-04-22 16:30:47下载
- 积分:1
-
掌握CDC的文字处理程序的编写,如何产生自定义字体和自定义插入符,熟悉对CString类的使用。通过对卡拉OK程序的编写,讲解定时器的使用和DrawText函数...
掌握CDC的文字处理程序的编写,如何产生自定义字体和自定义插入符,熟悉对CString类的使用。通过对卡拉OK程序的编写,讲解定时器的使用和DrawText函数的巧妙运用。讲解如何使用CDC的裁减功能。-grasp of word processing procedures for the preparation, how to customize fonts and custom insert website. redeem familiar with the right kind of use. By karaoke program, the timer on the use and DrawText function cleverly use. CDC on how to use the reduction of function.
- 2022-04-21 05:09:36下载
- 积分:1
-
本程序实现ProcControl类,提供了enumerate各进程的功能(进程信息包括:进程ID,进程名称,用户名,内存使用情况,CPU情况等)
还提...
本程序实现ProcControl类,提供了enumerate各进程的功能(进程信息包括:进程ID,进程名称,用户名,内存使用情况,CPU情况等)
还提供启动进程,按进程名杀死进程,按进程ID杀死进程的功能。-ProcControl the program category, providing enumerate the functions of the process (process information, including : process ID, process name, user name, memory usage, CPU, etc.), also provided to initiate the process by killing the process from the process, the process by killing the process ID function.
- 2022-03-06 19:14:51下载
- 积分:1