①编译
②链接
链接方式 | 描述 |
---|---|
静态链接方式 | 在程序运行之前把目标模块和库函数链接成一个完整的装配模块 |
装入时动态链接 | 边装入边链接 |
运行时动态链接 | 程序执行时需要该模块时才链接 |
③装入
装入方式 | 描述 | 特点 |
---|---|---|
绝对装入方式 | 编译时便产生绝对地址,只适合单道程序环境 | 编译时确定内存位置,运行时无需改变地址 |
静态重定位 | 装入时对地址“重定位”,将逻辑地址一次性变为物理地址 | 作业装入内存时,必须分配其要求的全部内存空间;作业装入内存后不能再移动,只适合固定分区 |
动态重定位 | 装入内存后仍为逻辑地址,到程序真正执行时才地址转换,需要重定位寄存器的支持 | 程序只需装入部分代码就可运行;需要硬件支持(动态重定位寄存器) |
分配策略 | 描述 | 特点 |
---|---|---|
首次适应 | 空闲分区按地址递增顺序链接。 | 会留下很多碎片,但通常最快最好 |
循环首次适应 | 空闲分区按地址递增顺序链接 | 从上次找到的空闲分区的下一个空闲分区查找 |
最佳适应 | 空闲分区按容量递增顺序链接 | 最容易产生内存碎片(2019) |
最坏适应 | 空闲分区按容量递减顺序链接 | 产生碎片的可能最小、会很快导致没有可用的大内存块 |
动态可重定位分区分配 | 紧凑:移动内存中作业位置,把分散的小分区拼接成大分区 |
①地址结构:页号+页内偏移量
②分页存储基本概念
③基本地址变换机构
④快表
⑤两级页表
页表级别 | 特点 |
---|---|
单级页表 | 会产生很多页表,这些页表需要连续存储且进程执行时必须全部调入内存 |
二级页表 | 二级页表在进程执行时只需调入一级页表并调入所需页表 |
②特点
③分页和分段的区别
概念 | 区别 |
---|---|
页 | 信息的物理单位,大小固定,一维的。为了系统,对用户不可见。 |
段 | 信息的逻辑单位,大小不定,二维的。为了满足用户的需求。 |
局部性概念 | 描述 |
---|---|
时间局部性 | 某条指令执行后不久可能再次执行,某个数据访问后不久可能被再次访问(程序的循环执行) |
空间局部性 | 某个存储单元访问后不久其附近的存储单元会被访问(指令的顺序执行、数据以向量、数组、表等形式簇聚存储) |
特征 | 描述 |
---|---|
多次性 | 作业无需一次性全部装入内存,可以在需要时分多次调入内存。 |
对换性 | 程序和数据无需常驻内存,可以在内存和外存之间进行交换。 |
虚拟性 | 用户看到的逻辑内存容量远远大于实际的物理内存容量。 |
(1)页表机制
页表项字段 | 描述 |
---|---|
状态位 | 该页是否在内存(程序访问时参考) |
访问字段 | 访问字段:页面访问次数(页面置换算法使用) |
修改位 | 页面调入内存后是否被修改(页面置换时是否写回外存) |
外存地址 | 页面对应的物理块号(地址转换使用) |
(2)缺页中断机构
①固定分配局部置换
②可变分配全局置换
③可变分配局部置换
④固定分配全局置换
①何时调入
调页策略 | 描述 |
---|---|
预调页策略 | 一次调入若干个相邻的页,但页面可能不会被访问(主要用于进程的首次调入,由程序员指定) |
请求调页策略 | 当发现页面不在内存时再调入,页面一定会被访问(所学的虚拟存储器就是采用这种方法) |
②从何处调入
外存划分 | 描述 | I/O速度特点 |
---|---|---|
文件区 | 用于存放文件,通常采用连续分配方式。 | I/O速度较慢,因为涉及大量数据的读写。 |
对换区 | 用于存放对换页面,通常采用离散分配方式。 | I/O速度较快,因为每次只访问少量数据。 |
情况 | 调入方法 |
---|---|
若对换区足够大 | 都从对换区调入 |
若对换区不够大 | 不会修改的从文件区调入;可能被修改的换出时调到对换区,以后从对换区调入 |
UNIX方式 | 未运行过的页面从文件区调入;运行过但又被调出页面从对换区调入 |
③如何调入
①简单型
②改进型
(1)抖动(颠簸)
(2)工作集
概念 | 解释 |
---|---|
工作集 | 某段时间内进程访问的页面集合 |
工作窗口 | 这段时间的长度 |
驻留集 | 进程分配的物理页框的集合 |
工作窗口一般要远大于工作集;驻留集一般大于工作集 |
1\documentclass{article}
2\usepackage{resume} % Assuming a custom resume.cls file is used
3\usepackage{hyperref}
4\usepackage[margin=1in]{geometry}
5\usepackage{fancyhdr}
6\usepackage{tabularx}
7\pagestyle{fancy}
8\fancyhf{}
9\rhead{\today}
10\lhead{[Your Name]}
11\rfoot{\thepage}
12\begin{document}
13\begin{center}
14 {\Large [Your Name]} \\
15 \textit{[Address]} \\
16 \textit{[Phone]} \\
17 \textit{[Email]} \\
18 \textit{[LinkedIn Profile]} (if applicable) \\
19\end{center}
20\section*{EDUCATION}
21\begin{tabularx}{\linewidth}{@{}l X@{}}
22 \textbf{South Central University, Changsha, Hunan, China} & Bachelor of Law, October 2020 - July 2024 \\
23 & \textit{GPA: 89.79/100, ranked 2nd out of 28 students} \\
24 & \textit{Language Proficiency: IELTS 7.5, CET-6 559, CET-4 586} \\
25 & \textit{Awards: 3rd Prize in National English Competition for College Students (2023), 2nd Prize in 21st Century Cup National English Speaking Competition (2023)} \\
26 & \textit{Bar Exam: Passed the Objective Exam (2023), pending the Subjective Exam} \\
27 & \textit{Future Education: Admitted to Master of Law program in International Financial Law at Shanghai University of Finance and Economics} \\
28\end{tabularx}
29\section*{WORK EXPERIENCE}
30\begin{tabularx}{\linewidth}{@{}l X@{}}
31 \textbf{Guohao Lawyers (Changsha Office), Changsha, Hunan, China} & Legal Assistant, June - August 2022 \\
32 & \textit{Assisted in the issuance of USD bonds for Chinese companies, utilizing knowledge of international economic law and business law} \\
33 & \textit{Participated in all-English projects, providing legal opinions to bond issuers} \\
34\end{tabularx}
35\section*{SOCIAL RESPONSIBILITY}
36\begin{tabularx}{\linewidth}{@{}l X@{}}
37 \textbf{Legal Publicity and Education Practice in Miluo City, Hunan, China} & Project Leader, June - August 2022 \\
38 & \textit{Led a team to Miluo City to conduct legal publicity, drug prevention work research, and dissemination of legal knowledge} \\
39 & \textit{Achievements: University-level approval for the project, 1st Prize in the 17th Shenghua Cup extracurricular academic competition, selected for SKSUNNY Happy Action by China Youth Development Foundation, published reports in local media} \\
40\end{tabularx}
41\section*{RESEARCH EXPERIENCE}
42\begin{tabularx}{\linewidth}{@{}l X@{}}
43 \textbf{Entrepreneurship Training Project for College Students, South Central University, Changsha, Hunan, China} & Deputy Project Leader, May 2023 - Present \\
44 & \textit{Conducted research in over 10 mines and visited over 20 companies, leading to the establishment of an ecological restoration service system for mines} \\
45 & \textit{Achieved national-level approval for the project, integrating technical support and legal policy support} \\
46\end{tabularx}
47\section*{EXTRACURRICULAR ACTIVITIES}
48\begin{tabularx}{\linewidth}{@{}l X@{}}
49 \textbf{Challenge Cup Competition, South Central University, Changsha, Hunan, China} & Deputy Project Leader, June 2022 - May 2023 \\
50 & \textit{Conducted field surveys and questionnaires on elderly couples with chronic diseases in 6 communities in Changsha} \\
51 & \textit{Achieved 3rd Prize in university-level competition} \\
52\end{tabularx}
53\section*{HONORS \& AWARDS}
54\begin{tabularx}{\linewidth}{@{}l X@{}}
55 \textbf{Outstanding Individual in Social Practice, South Central University} & (2022) \\
56 \textbf{Outstanding Student, South Central University} & (2022) \\
57 \textbf{3rd Prize, National English Competition for College Students} & (2023) \\
58 \textbf{2nd Prize, 21st Century Cup National English Speaking Competition} & (2023) \\
59