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

  • 大小: 80KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-03
  • 語言: 其他
  • 標簽: 進程管理??

資源簡介

操作系統實驗報告-進程管理實驗-時間片輪轉調度算法模擬 時間片輪轉調度算法模擬

資源截圖

代碼片段和文件信息

#include“stdio.h“
#include“stdlib.h“
#include“string.h“
#include“iostream.h“
typedef?struct?pcb
{
char?pname[10];
int?prio;
//int?round;
int?cputime;
int?needtime;
int?servertime;
char?state;
struct?pcb?*next;
}PCB;
PCB?*finish*ready*run;
int?N;

void?printready()
{
????PCB?*p;?
???if(ready==NULL)?printf(“******就緒隊列為空!?\n“);
???else?
???{?
????????printf(“******就緒隊列為:“);
????????p=ready;
???????while(p!=NULL)?
????{?
???????????printf(“%s---“p->pname);
???????????p=p->next;?
????}?
printf(“?\n?“);
???}
}


void?prt1()?
{
//if(toupper(a)==‘p‘)
//cout<<“?“<printf(“進程名?已運行時間?剩余時間?要求服務時間????狀態\n“);
}

void?prt2(PCB?*q)????/*輪轉法的輸出*/
{
//if(toupper(a)==‘P‘)
//printf(“進程名???已運行時間????剩余時間????要求服務時間????狀態“);
printf(“%3s%10d%12d%12d%12c\n“q-

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2791??2008-11-23?12:37??時間片輪轉調度算法模擬.c

?????文件?????134144??2008-11-23?13:09??實驗一.doc

-----------?---------??----------?-----??----

???????????????136935????????????????????2


評論

共有 條評論