登录
首页 » Java » Process

Process

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

代码说明:

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

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

发表评论

0 个回复

  • evavqate-decomposition
    内含直线生成的dda,中点画线算法及Bresenham算法界面美观方便实用(Contains linear generated dda, dotted line algorithm and Bresenham algorithm interface in beautiful and convenient and practical)
    2017-04-18 20:31:34下载
    积分:1
  • xiaoche
    一个制作的简单的小汽车模型,运用VRML中的。(a car)
    2011-07-26 09:45:33下载
    积分:1
  • Calculator
    一共使用了建造者模式、状态模式、命令模式、策略模式、单件模式这5个设计模式。 本次课程设计是开发一款有多个面板的计算器。不仅有针对日常生活“标准型”面板、针对理工科计算的“科学型”面板、针对于编程人员计算“程序员”面板,还别出心裁地开发了针对中学生的数学学习“特色型”面板,有利于他们检查自己数学作业答案和试卷答案。 本计算器实现了当点下拉菜单中标准型、科学型、程序员和特色型等选项可以切面不同的计算器面板。 本计算器实现了当选中按钮时,按钮呈现如黄水晶般色调渐变的颜色。 本计算器实现了自定义左上角图标的功能。 关键词: 建造者模式 状态模式 命令模式 策略模式 单件模式 计算器 多面板 标准型 科学型 程序员 特色型 初等函数 二进制 八进制 十六进制 分解质因数 最简二次根式 一元二次方程 保留根号 小数转分数 循环小数(We used a total of builder mode, the state mode, command mode, the policy mode, single mode these five design patterns. This course is designed to develop a plurality of panels of a calculator. Not only for everyday life, " standard" panel for science and engineering computing " science-based" panel, for the calculation of " programmer" panel to programmers, even inspired to develop the learning of mathematics for high school students " special type" panel, there are benefit them check their math homework answers and answers to tests. The calculator achieved her point standard drop-down menu, science-based, programmers and characteristics of different type and other options section of the calculator panel. This calculator implements the election of the button, the button showing topaz hue gradient colors. The calculator icon in the top left corner to achieve a custom function. Keywords: Builder mode status Mode Command Mode Strategy Mode single mode )
    2015-08-03 23:31:28下载
    积分:1
  • CObject
    Java game code. marv the miner
    2009-09-28 21:01:07下载
    积分:1
  • ATM
    编写一个控制台程序,模拟在ATM机的存款和取款过程,当输入给定的卡号和密码(初始卡号和密码到数据文件里查看)时,系统能登录ATM系统,根据用户的身份不同显示不同的程序界面;取款   每次取款金额只能为100的倍数,总额不超过2000元,不允许透支。且取款之后,要记录取款的金额和时间。 存款   每次存款金额只能为100的倍数,总额不超过2000元。 修改密码   新密码长度不小于6位,不允许出现6位完全相同的情况,只有旧密码正确,新密码符合要求,且两次输入相同的情况下才可以成功修改密码。(Write a console program to simulate the ATM deposits and withdrawals process, when you enter a given number and password (the initial number and password to the data file view), the system can log in ATM systems, according to the user' s identity different display different The program interface withdrawal amount each withdrawal can only be a multiple of 100, the total does not exceed 2,000 yuan, does not allow overdrafts. And withdrawals after the withdrawal of the amount to be recorded and time. Deposit Amount per Deposit only a multiple of 100, totaling no more than 2,000 yuan. Change Password New Password length not less than six, allowed six identical situation, only the old password is correct, the new password meets the requirements, and enter the same case twice before they can successfully change the password.)
    2013-10-14 22:50:17下载
    积分:1
  • javamain99
    the main of the println file of china
    2020-06-20 03:00:02下载
    积分:1
  • nakenchat-1.29.tar
    用Java 语言编写的聊天服务器,大家可以参考下。。。。。。。(Java language using the chat server)
    2009-11-11 16:17:15下载
    积分:1
  • InteractiveSVG
    交互式SVG图形demo的源代码,主要是网页设计前端功能(SVG demo)
    2014-02-17 20:54:20下载
    积分:1
  • 00458087
    学习JAVA_swing的看哈大家一起加油,上传更好的东西来分享一下()
    2018-02-10 22:01:09下载
    积分:1
  • Java
    本文先简要地介绍正则表达式的入门知识,然后以Jakarta-ORO API为例介绍如何使用正则表达式。(This article first briefly describes introductory knowledge of regular expressions, and then to Jakarta-ORO API example describes how to use regular expressions.)
    2013-10-08 23:38:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载