91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

一個(gè)比較詳細(xì)的進(jìn)程管理系統(tǒng),包含多種命令,例如 req, rel, show, init, del, cle, cre 等,模擬linux命令,具體實(shí)現(xiàn)方式在博客中有介紹(如果想過(guò)操作系統(tǒng)實(shí)驗(yàn),建議參考這個(gè)代碼)。

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
/*
*?Processing?manager
*?Author?WUD?(Wangjunx)
*?Date?2018.11.01
*?Email:?wjx.wud@gmail.com
*?Contact:?Harbin?Institute?Of?Technology?At?Weihai?(Cyberpace?Security)
*?Ver?1.0
*/

using?namespace?std;

/*進(jìn)程結(jié)構(gòu)體??#Process#*/
typedef?struct?Process?{
????????char?Name;???????????//?進(jìn)程名
????????int?PID;????????????????//?進(jìn)程號(hào)
????????int?Memory;??????????????//?內(nèi)存大小
????????char?State[9];???????//?狀態(tài)
????????int?PRI;????????????????//?優(yōu)先級(jí)
????????char?*Others;????//?其他資源
????????int?link_ID;????????????//占用的內(nèi)存ID號(hào)
};

/*資源結(jié)構(gòu)體??#Resource#*/
typedef?struct?Resource{
????????int?RID;?????????????????//?資源標(biāo)識(shí)符
????????char?State[5];????????//?資源狀態(tài)
????????char?Pname[2];?????????//?被資源占用導(dǎo)致等待的進(jìn)程隊(duì)列
};

void?Proc

評(píng)論

共有 條評(píng)論