登录
首页 » Java » Process

Process

于 2018-11-29 发布 文件大小:4KB
0 166
下载积分: 1 下载次数: 1

代码说明:

  java进程调度(优先级)进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。每个进程有一个进程控制块( PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。 进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为进程输入的时间。进程的运行时间以时间片为单位进行计算。每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。如果运行一个时间片后,进程的已占用 CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。  (Java process scheduling)

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

发表评论

0 个回复

  • school
    这是本人的j2ee期末课程设计,是根据校方需求,为其所作的学校事务及教学信息管理系统,可以进行后台登陆的增删改查。功能比较完善。(This is the end of my j2ee curriculum design is based on school needs, for the school affairs and teaching information management system, can change the background investigation landing deletions. Function relatively perfect.)
    2009-12-28 09:10:45下载
    积分:1
  • LodeRunner-Source
    Played a very sweet as possible remained the member of my sons dirty my time
    2013-07-19 15:48:56下载
    积分:1
  • soapui-maven-template-master
    This is an example project of executing a simple mock webservice in SoapUI, and a unit test suite, using Maven.
    2018-04-17 17:19:54下载
    积分:1
  • foreign-iframe-subresource
    The this keyword evaluates to the this value of the execution context.
    2013-12-24 19:23:59下载
    积分:1
  • KeyguardViewMediator
    Low level access to the power manager for enableUserActivity.
    2014-02-17 13:22:12下载
    积分:1
  • Swing
    一个简单的java swing特效,有兴趣的可以参考下,适合初学者。(A simple java swing effects, are interested can refer to, for beginners.)
    2013-08-05 12:55:54下载
    积分:1
  • 2
    说明:  关于Java的一个小程序!他是我平时编的,希望对大家有用,谢谢!(On a small Java program!)
    2010-05-29 08:29:01下载
    积分:1
  • FirstMissingPositive112_Done
    给出数组中的一串数字,找到里面缺省的第一个正整数(For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant space. )
    2017-05-01 12:32:34下载
    积分:1
  • LoginSSI
    使用Struts2+Spring3+ibatis框架实现的登录功能(Implement a simple to login some system.We use the Struts2+Spring3+ibatis MVC.)
    2015-04-23 10:31:48下载
    积分:1
  • hezeliaotianshi
    1、聊天室创建 管理员可以自由的创建嘉宾聊天室,可以随意添加嘉宾的名单、设置主题、时间和简介等有关内容...3、聊天室关闭 管理员可以关闭不再使用的嘉宾聊天室(1, the chat room administrator can create the freedom to create guests chat rooms, can add the list of guests, set the theme, time and brief description of other relevant content ... 3, chat rooms are no longer close the administrator can shut down chat rooms used by guests)
    2008-05-03 23:14:18下载
    积分:1
  • 696518资源总数
  • 106245会员总数
  • 18今日下载