登录
首页 » Process-Thread » two experimental operating system : the process of scheduling strategy to achiev...

two experimental operating system : the process of scheduling strategy to achiev...

于 2022-02-20 发布 文件大小:989.00 B
0 189
下载积分: 2 下载次数: 1

代码说明:

操作系统实验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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 学习多线程编程不可多得得例子,思路清晰, 并可为深入学习的人进一步应用。...
    学习多线程编程不可多得得例子,思路清晰, 并可为深入学习的人进一步应用。-learning multithreaded programming in a rare example of clear ideas and being able to study in depth the further application.
    2023-07-17 06:35:03下载
    积分:1
  • 能控制其它程序的运行。 用VB编写的
    能控制其它程序的运行。 用VB编写的-Be able to control other programs 。。。
    2022-03-24 16:27:08下载
    积分:1
  • 进程信息查阅
    进程信息查阅-The process of information access
    2022-05-29 04:25:10下载
    积分:1
  • 多线程程序一起工作,一些线程等待另一个线程…
    多线程协同工作过程中一些线程等待另一线程提供资源所以要线程之间要同步进行-multithreaded process to work together some threads awaiting another thread there to provide resources between the threads simultaneously
    2023-07-12 18:45:03下载
    积分:1
  • 用VC6.0写的一个简单的多
    用VC6.0写的简单多线程,初学者可以参考一下-VC6.0 write with a simple multi-threaded, beginners can take a look
    2022-02-03 13:05:13下载
    积分:1
  • 实现了在windows系统下的进程隐藏,有效的保护了进程的安全性...
    实现了在windows系统下的进程隐藏,有效的保护了进程的安全性
    2022-01-25 15:03:44下载
    积分:1
  • 使用信号量对象实现线程的同步的一个实例
    使用信号量对象实现线程的同步的一个实例- The use signal quantity object realizes a line regulation synchronization example
    2022-01-28 10:10:45下载
    积分:1
  • the NT environment hidden process, the user is unaware of the conditions, the im...
    在NT环境下隐藏进程,也就是说在用户不知情的条件下,执行自己的代码的方法有很多种,比如说使用注 册表插入DLL,使用Windows挂钩等等。其中比较有代表性的是Jeffrey Richer在《Windows核心编程》中 介绍的LoadLibrary方法和罗云彬在《Windows环境下32位汇编语言程序设计》中介绍的方法。两种方法的 共同特点是:都采用远程线程,让自己的代码作为宿主进程的线程在宿主进程的地址空间中执行,从而达 到隐藏的目的。相比较而言,Richer的方法由于可以使用c/c++等高级语言完成,理解和实现都比较容易 ,但他让宿主进程使用LoadLibrary来装入新的DLL,所以难免留下蛛丝马迹,隐藏效果并不十分完美。罗 云彬的方法在隐藏效果上绝对一流,不过,由于他使用的是汇编语言,实现起来比较难(起码我写不了汇 编程序:))。笔者下面介绍的方法可以说是对上述两种方法的综合:采用c/c++编码,实现完全隐藏。并 且,笔者的方法极大的简化了远程线程代码的编写,使其编写难度与普通程序基本一致。-the NT environment hidden process, the user is unaware of the conditions, the implementation of their code There are various ways, for instance, the use of the registry into DLL, etc. linked to the use of Windows. The more representative Jeffrey Richer is the "core Windows programming" introduced by the LoadLibrary method and the Luo Bin, "under Windows 32 assembly language programming" introduced by the method. Two methods are common features are : remote threads are used to keep the code as host process threads in t
    2022-03-23 05:27:10下载
    积分:1
  • 看进程是否有administrator权限
    看进程是否有administrator权限-To see whether there is any administrator permissions process
    2022-08-21 22:12:02下载
    积分:1
  • 简单的进程查看器
    简单的进程查看器-simple process viewer
    2022-04-09 06:15:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载