memoryallocate.java~15~

来自「进程调度和存储管理模拟」· JAVA~15~ 代码 · 共 52 行

JAVA~15~
52
字号
package cn.edu.cauc.crab.ossimulate;import java.util.*;/** * <p>Title: OS simulate</p> * <p>Description: This is my home work.</p> * <p>Copyright: Copyleft (c) 2004</p> * <p>Company: CAUC</p> * @author Crab * @version 0.1 */class MemoryRequest {    static int NEW = 0;    static int DELECT = 1;    int mode;    int begin;}class  PT {    int beging;    int size;}abstract public class MemoryAllocate {    int memorySize;    List fpt = new LinkedList();    List upt = new LinkedList();    List request = new LinkedList();    public MemoryAllocate(int memorySize) {        this.memorySize = memorySize;        PT pt = new PT();        pt.beging = 0;        pt.size = this.memorySize;    }    public void addRequest(int mode, int begin) {        MemoryRequest m = new MemoryRequest();        m.mode = mode;        m.begin = begin;        this.request.add(m);    }    abstract public void start();    /*    public static void main(String[] args) {        MemoryAllocate memoryAllocate1 = new MemoryAllocate(100);        System.out.println("crab");    }*/}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?