登录
首页 » 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 159
下载积分: 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 个回复

  • beginer线程程序实例
    Thread program example for beginer
    2022-02-02 16:21:09下载
    积分: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
  • 一个线程程序,通过信号量来同步几个同时运行的线程.
    一个线程程序,通过信号量来同步几个同时运行的线程.- A line regulation procedure, comes the line regulation the proceed signal quantity which synchronized several simultaneously moves
    2023-06-15 07:30:03下载
    积分:1
  •  一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间...
     一般而言,应用程序中的一个次要线程总是为主线程执行特定的任务,这样,主线程和次要线程间必定有一个信息传递的渠道,也就是主线程和次要线程间要进行通信。这种线程间的通信不但是难以避免的,而且在多线程编程中也是复杂和频繁的,下面将进行说明。-Generally speaking, the application of a secondary thread is always the main thread to perform a specific task, so that main thread and secondary threads must have a channel for the transmission of information, which is the main thread and the secondary thread to communicate between. This inter-thread communication is not only inevitable, but also in multi-threaded programming is complex and frequent, the following description will be carried out.
    2022-03-06 14:41:20下载
    积分:1
  • 此为操作系统实验报告: scan,cscan算法模拟磁盘调度 内含:程序流程图 设计思路 主要源码等等。 简介:磁盘是一种高速、大容量、旋转型、可直接存取的存储...
    此为操作系统实验报告: scan,cscan算法模拟磁盘调度 内含:程序流程图 设计思路 主要源码等等。 简介:磁盘是一种高速、大容量、旋转型、可直接存取的存储设备。它作为计算机系统的辅助存储器,担负着繁重的输入输出任务、在多道程序设计系统中,往往同时会有若干个要求访问磁盘的输入输出请求等待处理。系统可采用一种策略,尽可能按最佳次序执行要求访问磁盘的诸输入输出请求。-operating system for this experiment : scan, cscan scheduling algorithm simulation disk containing : flowchart design major source so on. Description : disk is a high-speed, high-capacity, rotating type, direct access storage devices. As computer systems support memory, shoulders the heavy task of input and output, multiple procedures in the system design, while there are often a number of requests to visit disk input and output requests pending.
    2022-08-15 17:19:56下载
    积分:1
  • VB6.0编写一个多
    一个基于vb6.0编写的多线程程序.以两个图片框背景色的同时改变来演示多线程-vb6.0 prepared for a multi-threaded process. Photo frame with two background color change at the same time to demonstrate the multithread
    2023-04-11 07:30:03下载
    积分:1
  • 如果对Windows开发有什么问题的话,请翻阅PetZold的著作吧。在《Window程序设计》(第5版)中,这位杰出的“Windows先锋 奖”(Wind...
    如果对Windows开发有什么问题的话,请翻阅PetZold的著作吧。在《Window程序设计》(第5版)中,这位杰出的“Windows先锋 奖”(Windows Pioneer Award)获得者根据最新的Windows操作系统权威技术修订了他的经典著作――再一次演示了基本的Win32程 序设计的API核心内容。本书的内容包括: ** 基本内容――输入、输出和对话框 ** Unicode概述 ** 图形――绘图、文本和字体、位 图和元文件 ** 内核和打印机 ** 声音和音乐 ** 动态链接库 ** 多任务和多线程 ** 多文档界面 ** Internet和 Intranet的程序设计 其中采用的大多是具有代表性的示例,这本Petzold著作为使用 Windows 95、Windows 98或 Windows NT的各级windows程序员提 供了最基本的参考和指导。没有经验的开发人员也可以从中获取大量的新知识。 -err
    2022-03-21 20:44:21下载
    积分:1
  • 进程和调度(内核
    进程和调度(kernel-) - 非常好的一篇有关连接和加载的文章, 取之与网, 用之与网, 与你分享!-process and Scheduling (kernel-)- a very good connections and the loading of the article, but it must and network and the network is used, to share with you!
    2023-07-19 07:00:09下载
    积分: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
  • 使用钩子函数+DLL共享线程实现进程调用记录.记录文件保存为*.sys...
    使用钩子函数+DLL共享线程实现进程调用记录.记录文件保存为*.sys-use shared DLL function hook threaded process call records of achievement. Save the file to record*. sys
    2022-08-16 09:33:51下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载