1、 Java 语言模拟操作系统的设计 摘 要 此系统使用 java 语言,实现了单用户多进程的存储管理、设备管理、进程管理和 文件管理部分。存储管理包括主存分配与回收。设备管理包括设备的分配与回收。设备 分配时采用采用先来先服务策略,设备回收时唤醒等待设备的进程。进程管理主要包括 进程调度,进程的创建和撤销、进程的阻塞和唤醒,中断作用的实现。文件管理包括了 文件的新建,复制,剪切,粘贴等主要功能本系统根据操作系统理论课上学习的操作系 统的知识,在采用混合索引文件结构、成组链接法的基础上实现单用户的磁盘文件管理 部分,包括:文件的逻辑结构、文件的物理结构、目录结构、磁盘分配回收等操作。同 时模拟实
2、现了操作系统的进程管理,内存管理和设备管理。 本论文主要阐述四部分内容,引言部分,主要说明本次操作系统课程设计的性质、教 学目的、教学任务与要求、意义以及论文的结构安排;系统分析与设计部分,主要阐述 系统的主要功能模块以及每个模块计划采用的实现方法和原理;系统实现部分,主要通 过流程图等工具描述主要模块的实现流程;最后一部分,结束语部分,主要书写已经实 现的本系统存在的不足、改进方案和在课程设计中的实际感受。 关键词:java 语言; 模拟操作系统 ; 物理结构 ABSTRACT The system based on operating system course learning oper
3、ating system knowledge, the hybrid indexing file structure, group link method based on single user disk file management part, including : the logical structure of the document, the physical structure of the document, the directory structure, magnetic disk allocation recovery operation. At the same t
4、ime to achieve a simulated operating system process management, memory management and equipment management. This paper on a four-part, the introductory remarks, the main operating system that the nature of the curriculum design, the purpose of teaching, teaching and mission requirements, as well as
5、the significance of the paper structure; part of the analysis and design, mainly on core functions of the system modules Each module, as well as the realization of the plan to adopt the methods and principles; part of the system, mainly through the flow chart, and other tools to describe the main mo
6、dule of the process to achieve; the last part of the concluding part of the writing has been the main achievement of the shortcomings of the system key words: Java Language Operating system 目 录 1 概述. 1 1.1 性质 1 1.2 设计目的 1 1.3 设计意义 1 1.4 论文结构安排 1 2 系统分析与设计 . 1 2.1 系统要求 1 2.2 文件的逻辑结构 2 2.3 文件的物理结构 2 2.4 目录结构 3 2.5 磁盘状态 3 2.6 用户接口 4 3 系统实现 . 4 3.1 磁盘管理 4 3.11 磁盘的创建 .4 3.1.2 磁盘的分配 5 3.1.3 磁盘的归还 6 3.1.4 磁盘状态的显示7 3.2 目录结构 7 3.2.1 创建目录7 3.2.2 删除空目录 9 3.2.3 删除目录9 3.3 文件 10 3.3.1 建立文件10 3.3.2 删除文件12 3