摘要:
//设计一个按优先数调度算法实现处理器调度的程序。#include<iostream.h>typedefstructp{charname[];inttime;intnum;structp*next;}plist;voidcreat();voidsort1(plist*L);voidsort2(plist*L);voiddisplay(plist*L);voiddone(plist*L)... 阅读全文
posted @ 2006-02-24 22:02
newzpflying
阅读(1924)
评论(3)
推荐(0)
摘要:
//可变分区管理方式下采用首次适应算法实现主存分配和回收#include<iostream.h>structprogram{charname[30];longstart;longlength;structprogram*next;};structspace{longstart;longlength;structspace*next;};voidcreat();voidallot();v... 阅读全文
posted @ 2006-02-24 22:01
newzpflying
阅读(2556)
评论(2)
推荐(0)
摘要:
//用位示图管理磁盘存储空间#include<iostream.h>structmapping//页号与块号对应{intpage;//页号intmass;//块号structmapping*next;};structpagelist{intlength;//页表长度mapping*map;};structrequest{intnum;//进程号intsize;//请求页面数pageli... 阅读全文
posted @ 2006-02-24 22:00
newzpflying
阅读(809)
评论(1)
推荐(0)
浙公网安备 33010602011771号