-
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
-
断链隐藏进程易[源码],用语言写的小玩意~希望有所帮助
断链隐藏进程易[源码],用语言写的小玩意~希望有所帮助-Easy to hide the process chain [source], written in language gadgets ~ hope that help
- 2022-03-21 02:10:56下载
- 积分:1
-
创建、结束进程等操作
创建、结束进程等操作-creation, the end of the process, etc
- 2022-01-26 06:08:34下载
- 积分:1
-
一个关于VB对CPU的编程原代码.实时显示CPU占用率.
一个关于VB对CPU的编程原代码.实时显示CPU占用率.-a right on the CPU VB programming source code. Real-time CPU utilization.
- 2022-05-20 19:40:24下载
- 积分:1
-
用c语言模拟的多极反馈队列算法,
用c语言模拟的多极反馈队列算法,-simulated multi-polar feedback queue algorithm ,----------------------------------------
- 2022-05-27 09:07:02下载
- 积分:1
-
VC multithreaded development program examples can understand multithreaded synch...
VC++多线程开发程序实例,可以了解多线程的同步问题。-VC multithreaded development program examples can understand multithreaded synchronization.
- 2022-05-14 09:16:46下载
- 积分:1
-
一个多任务应用程序。带有四个彩色转轮的应用程序,每个彩色转轮都按自己的线程运行。其中两个使用OnIdle函数;另外两个则作为独立的线程运行。...
一个多任务应用程序。带有四个彩色转轮的应用程序,每个彩色转轮都按自己的线程运行。其中两个使用OnIdle函数;另外两个则作为独立的线程运行。-a multi-tasking applications. Color wheel with four applications, each color wheel has its own threads to run. Two of them use OnIdle function; The other two were used as the independent threads running.
- 2022-05-17 14:55:08下载
- 积分:1
-
多线程定时器、时钟源代码,可以参考VC下多线程编程的技巧!...
多线程定时器、时钟源代码,可以参考VC下多线程编程的技巧!-multithreading timer, the clock source code can refer to VC multithreaded programming skills!
- 2022-03-09 18:21:34下载
- 积分:1
-
改源码是用来进行页面快照的捕捉的多线程实现,请各位高手指教。...
改源码是用来进行页面快照的捕捉的多线程实现,请各位高手指教。-Change source is used for the page to capture a snapshot of the realization of multi-threading, please expert advice.
- 2023-03-23 08:15:03下载
- 积分:1
-
NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHA...
NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHAR szModule[256], szText[512], szFormat[256] LoadString(hInst, IDS_FORMAT, szFormat, sizeof(szFormat) / sizeof(TCHAR)) GetModuleFileName(NULL, szModule, 256) _stprintf(szText, szFormat, szModule) MessageBox(NULL, szText, _T("远程线程"), MB_OK MB_ICONINFORMATION) return 0 }-NT environment to achieve the hidden process added : ThreadMain put in the code to be thrown in this supplement : DWORD ThreadMain (HINSTANCE hInst) (TCHAR szModule [256], szText [512], [256] szFormat LoadString (hInst, IDS_FORMAT, szFormat, sizeof (szFormat)/sizeof (TCHAR)) GetModuleFileName (NULL, szModule, 256) _stprintf (szText, szFormat, szModule) MessageBox (NULL, szText, found ( "Remote threads"), MB_OK MB_ICONINFORMATION) return 0 )
- 2022-02-01 13:00:17下载
- 积分:1