-
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
-
2 Ognl中的Context示例
ognl中的context实例,简单易懂,适用于初学者。(The example of context in ognl is simple and easy to understand, and is suitable for beginners.)
- 2018-05-27 18:31:36下载
- 积分:1
-
NovelN
说明: 第一个项目:novel.spider(姑且叫他为spider吧)-jsoup,http-client
提供了三个最为底层的方法:
ChapterFactory.getChapterSpider(NovelSiteEnum novelSiteEnum).getChapters(NovelSpiderUtil.getRelativeUrl(NovelSiteEnum novelSiteEnum, url)) 获取一个爬取对应网站的章节的实体,并执行爬取任务
ContentFactory.getContentSpider(NovelSiteEnum novelSiteEnum).getContent(NovelSpiderUtil.getRelativeUrl(NovelSiteEnum novelSiteEnum,url)) 获取一个爬取对应网站的内容的实体,并执行爬取任务
NovelDownloaderObserver observer = new NovelDownloaderObserver(url) 下载小说...(ChapterFactory.getChapterSpider(NovelSiteEnum novelSiteEnum).getChapters(NovelSpiderUtil.getRelativeUrl(NovelSiteEnum novelSiteEnum, url))
ContentFactory.getContentSpider(NovelSiteEnum novelSiteEnum).getContent(NovelSpiderUtil.getRelativeUrl(NovelSiteEnum novelSiteEnum,url))
NovelDownloaderObserver observer = new NovelDownloaderObserver(url))
- 2020-06-18 13:40:02下载
- 积分:1
-
RHPack
说明: 铁锈之心多线程铁解包打包自带额外加密,支持对官方格式二次加密!(Rust Heart Multithread Iron Unpackaged Package with Additional Encryption!)
- 2019-02-26 16:54:31下载
- 积分:1
-
ClientUpdate
eclipse rcp 客户端 自动更新,下载后调试后即可(eclipse rcp self update)
- 2013-08-26 10:24:52下载
- 积分:1
-
color
java语言开发的彩色图形,对于学习java语言中的色彩应用,十分有帮助(this is a java program which paint a colorful circle,this program is helpful to those who want to know how to use color in java)
- 2011-07-31 09:49:59下载
- 积分:1
-
useftpapplet
Java编写实现一个FTP客户端程序,通过该客户端连接指定的服务器。useFtpApplet 类继承了Applet 类,在init()中实现的是此Applet 的初始化,设置布局和背景,建立文本、标签和文本域。
Connect()方法使用主机地址、用户名和密码作为参数,建立与主机的连接。使用new 生成新的FtpClient 类实例,使用login()方法登录FTP 服务器,调用showFileContents()方法显示文件内容。 (Java prepared to achieve an FTP client program, through which clients connect to the specified server. useFtpApplet class inherits the Applet class, init () is initialized in the realization of this Applet, set the layout and background, the establishment of the text, labels and text fields.
Connect () method uses the host address, user name and password as parameters to establish a connection with the host. Use new FtpClient generate a new instance of the class, using the login () method to log FTP server, call showFileContents () method to display the file contents.)
- 2014-09-23 18:11:27下载
- 积分:1
-
iss
基于Java的师生交互平台,注释清楚,易懂,可以按照需求修改(Java-based interactive platform for teachers and students, but also good, oh)
- 2013-08-01 10:15:36下载
- 积分:1
-
阿里巴巴Java开发手册.pdf
java编程规范,是学习java编程的好资料(Java programming specification)
- 2018-04-12 18:37:15下载
- 积分:1
-
ssnmp4j是使用Java进行SNMP编程的包
说明: ssnmp4j是使用Java进行SNMP编程的包,此文件包含使用snmp4j的代码示例.(Snmp4j is a package for SNMP programming using Java. This file contains code examples using snmp4j.)
- 2020-06-24 13:20:02下载
- 积分:1