freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

惠州學院操作系統(tǒng)實驗五-資料下載頁

2025-07-07 13:53本頁面
  

【正文】 i].state = 39。039。 pcbPool[i].next = NULL。 pcbPool[i].prin = 。 pcbPool[i].waittime = 0。 if(i==0) { readyQueue = amp。pcbPool[0]。 readyQueueTail = amp。pcbPool[0]。 } else { readyQueueTailnext = amp。pcbPool[i]。 readyQueueTail = amp。pcbPool[i]。 } if(i++ 9) break。 puts(Do you want to input more process(y or n): )。 scanf(%s, amp。stop)。 } poolSize = i + 1。}void insertRunningQueue(){ runningQueue = readyQueue。 readyQueue = readyQueuenext。 runningQueuestate = 39。139。}void displayQueue(){ if(readyQueue!=NULL) { PCB pcb = *readyQueue。 while(1) { printf(Process: %s State: %d Waittime: %d\n, , , )。 if(==NULL) break。 else pcb = *()。 } } if(runningQueue!=NULL) printf(Process: %s State: %d Waittime: %d\n, runningQueuename, runningQueuestate, runningQueuewaittime)。}void runPro(){ sleep(runningQueueneedtime)。 //模擬執(zhí)行進程 //更新運行隊列 if(readyQueue!=NULL) { PCB *pcb = readyQueue。 while(1) { pcbwaittime = pcbwaittime + runningQueueneedtime。 if(pcbnext==NULL) break。 else pcb = pcbnext。 } } //將運行結束當進程移入完成隊列 if(finishedQueue==NULL) { finishedQueue = runningQueue。 finishedQueueTail = runningQueue。 finishedQueueTailnext = NULL。 } else { finishedQueueTailnext = runningQueue。 finishedQueueTail = runningQueue。 } //清理運行時隊列 runningQueuestate = 39。039。 runningQueue = NULL。}void addNewPro(){ char name[10]。 char stop = 39。y39。 int needtime, i=poolSize1。 puts(Do you want to input more process(y or n): )。 scanf(%s, amp。stop)。 while(stop==39。y39。) { //獲取用戶輸入進程名 puts(Please input the process name: )。 scanf(%s, name)。 strcpy(pcbPool[i].name, name)。 //獲取用戶輸入進程需要時間 puts(Please input the need of time: )。 scanf(%d, amp。needtime)。 pcbPool[i].needtime = needtime。 pcbPool[i].state = 39。039。 pcbPool[i].next = NULL。 pcbPool[i].prin = 。 pcbPool[i].waittime = 0。 if(readyQueue==NULL) { readyQueue = amp。pcbPool[i]。 readyQueueTail = amp。pcbPool[i]。 } else { readyQueueTailnext = amp。pcbPool[i]。 readyQueueTail = amp。pcbPool[i]。 } if(i++ 9) break。 puts(Do you want to input more process(y or n): )。 scanf(%s, amp。stop)。 } poolSize = i + 1。}程序運行截圖如下:
點擊復制文檔內容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1