-
创建一个子进程并接收子进程的消息和输出信息
创建一个子进程并接收子进程的消息和输出信息- Founds a child process and receives the child process the news
and the output information
- 2022-04-07 03:12:03下载
- 积分:1
-
使用信号量对象实现线程的同步的一个实例
使用信号量对象实现线程的同步的一个实例- The use signal quantity object realizes a line regulation
synchronization example
- 2022-01-28 10:10:45下载
- 积分: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
-
采用事件的线程同步操作
采用事件的线程同步操作-use the thread synchronization
- 2022-10-12 06:55:03下载
- 积分:1
-
Terminator是一个小程序,使用它你可以说明一个你想要结束的模块的列表(通过路径名或名称)。
Terminator是一个小程序,使用它你可以说明一个你想要结束的模块的列表(通过路径名或名称)。-Terminator is a small program you can use it to illustrate one you want to end the module list (by name or path).
- 2023-05-20 17:15:03下载
- 积分:1
-
主要是用语解决死锁问题的算法,也称之为银行家算法,希望可以用的上!...
主要是用语解决死锁问题的算法,也称之为银行家算法,希望可以用的上!-term solution is mainly the deadlock algorithm, also known as bankers algorithm can be used to hope!
- 2022-08-03 21:11:11下载
- 积分:1
-
经典的跑马程序,演示了Windows环境下的多线程概念!
经典的跑马程序,演示了Windows环境下的多线程概念!-Happy classic procedures, demonstrated the Windows environment the concept of multi-threaded!
- 2022-05-26 15:44:40下载
- 积分:1
-
这个是一个关于多线程的程序线程其实是计算机运行的最小单位...
这个是一个关于多线程的程序线程其实是计算机运行的最小单位-This is a multi-threaded on the procedures thread is the smallest computer operating units
- 2023-03-18 07:25:03下载
- 积分:1
-
进程管理,动态分配内存,按照最大优先级的动态分配
进程管理,动态分配内存,按照最大优先级的动态分配-process management, dynamic memory allocation, in accordance with the priority of the largest dynamic allocation
- 2022-03-14 06:10:56下载
- 积分:1
-
Delphi编程
delphi编程-delphi programming
- 2022-03-18 04:46:24下载
- 积分:1