📄 mem.h
字号:
//mem.h 文件包含一些属性的常量以及所需要的数据结构
//2007.12.12
#define MIN_SLICE 10 /*最小碎片的大小*/
#define DEFAULT_MEM_SIZE 1024 /*默认内存的大小*/
#define MAX_SIZE 32768 /*最大内存容量*/
#define DEFAULT_MEM_START 0 /*默认内存的起始位置*/
/* 内存分配算法 */
#define MA_FF 1
#define MA_BF 2
#define MA_WF 3
/*描述空闲分区的数据结构*/
struct free_block_type
{
int size;
int start_addr;
struct free_area_type *next;
};
/*分配给进程的分区的描述*/
struct allocated_area
{
int pid;
int size;
int start_addr;
struct allocated_area *next;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -