-
Process
java进程调度(优先级)进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。每个进程有一个进程控制块( PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。
进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为进程输入的时间。进程的运行时间以时间片为单位进行计算。每个进程的状态可以是就绪
W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。就绪进程获得
CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。如果运行一个时间片后,进程的已占用
CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的
PCB,以便进行检查。 (Java process scheduling)
- 2018-11-29 23:13:42下载
- 积分:1
-
spring-server-generated
说明: Restful风格的前后台接口,由swagger平台利用yaml文件生成的Spring文件(Restful style front and back interface)
- 2019-10-31 19:21:44下载
- 积分:1
-
version
Get Version From String Source Code for Linux.
- 2013-08-01 11:11:59下载
- 积分:1
-
BluetoothOppBtEnableActivity
This class is designed to show BT enable confirmation dialog .
- 2013-11-11 21:06:15下载
- 积分:1
-
五子棋java
说明: 基本算法:
采用博弈比较常用的策略。
计算机下子前,分别对玩家和电脑棋型进行评估,然后根据棋型对每一位置打分(玩家和电脑在同一点的分数不同),比如活三100分,冲四1000分等,然后根据每个落子点分数进行选择。采用极大极小值策略,进行多步计算。(Basic algorithm:
The game strategy is commonly used.
Before computer playing, players and computer chess models are evaluated separately, and then each position is scored according to the chess pattern (players and computers have different scores at the same point), such as live three hundred points, go four thousand points, and then choose according to the score of each falling point. Multi-step calculation is carried out by using the minimax strategy.)
- 2020-06-17 17:00:02下载
- 积分:1
-
ejbinterop
EJB与CORBA的交互例子,及源代码,代码内有一个处理日志信息打印的类、一个格式化的字符串用于显示信息类、在构造函数中获取当前的日期和时间类等。(EJB and CORBA interactive examples, and the source code, code inside a processing log information print category, a formatted string used to display information, in the constructor gets the current date and time etc.)
- 2012-05-06 16:45:56下载
- 积分:1
-
DrawPictureTool
手机版画图工具,和电脑自带的画图工具部分功能一致,大家编程时可以多学习
- 2009-12-07 11:01:22下载
- 积分:1
-
TomExam2_With_JTM
tomexam,一个简单易用的在线考试系统。tomcat、java、mysql.(tomexam, a simple-to-use online examination system. tomcat, java, mysql.)
- 2017-01-12 14:46:20下载
- 积分:1
-
tftp-1.0
基于linux-arm的ftp软件,包括文件的上传和下载功能(Based on linux-arm s ftp software, including file upload and download capabilities)
- 2014-05-30 16:44:11下载
- 积分:1
-
dubbo
Java SpringBoot整合dubbo实例(Java SpringBoot integration dubbo Example)
- 2020-06-24 15:20:01下载
- 积分:1