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

正文內容

惠州學院操作系統實驗五(更新版)

2025-08-15 13:53上一頁面

下一頁面
  

【正文】 displayQueue()。 //進程還需要當CPU時間 int waittime。 //清理運行時隊列 runningQueue = NULL。 finishedQueueTailnext = NULL。 else pcb = *()。 } poolSize = i + 1。 } else { readyQueueTailnext = amp。039。) { //獲取用戶輸入進程名 puts(Please input the process name: )。 } puts(Bye)。 //根據進程標識和估計運行時間,將其PCB插入就緒隊列void insertRunningQueue()。 //進程輪轉的時間片 int needtime。 }程序運行截圖如下:任務2:時間片輪轉調度算法模擬輸入一批作業(yè)的進程標識和估計運行時間,由其PCB組成就緒隊列。pcbPool[i]。 pcbPool[i].next = NULL。 scanf(%s, name)。y39。 finishedQueueTailnext = NULL。 } } if(runningQueue!=NULL) printf(Process: %s State: %d prin: %f\n, runningQueuename, runningQueuestate, runningQueueprin)。139。 else pcb = pcbnext。 } if(i++ 9) break。 if(i==0) { readyQueue = amp。 scanf(%d, amp。y39。 displayQueue()。 //根據進程標識和估計運行時間,將其PCB插入就緒隊列void readyQueueNotNull()。 //進程輪轉的時間片 int needtime。創(chuàng)建進程,就是用戶輸入進程的標識符和運行所需時間,系統為其生成一個PCB,存放進程的信息,將新生成的PCB插入就緒隊列。 //進程當狀態(tài) struct node *next。 //將所有非結束進程的狀態(tài)和優(yōu)先權信息顯示在屏幕void runPro()。 addNewPro()。y39。 pcbPool[i].state = 39。pcbPool[0]。stop)。 chosePCB = currentPCB。 else lastOfChosePCBnext = chosePCBnext。 while(1) { pcbwaittime = pcbwaittime + runningQueueneedtime。 } //清理運行時隊列 runningQueuestate = 39。 scanf(%s, amp。 scanf(%d, amp。 if(readyQueue==NULL) { readyQueue = amp。 } if(i++ 9) break。當時間片結束的時候,要將沒有運行完的進程從運行隊列移到就緒隊列的末尾,再次進行調度。 //進程當狀態(tài) struct node *next。 //讓運行進程執(zhí)行足夠的服務時間int main(int argc, char const *argv[]){ createPro()。 char stop = 39。 //獲取用戶輸入進程需要時間 puts(Please input the need of time: )。 pcbPool[i].round = 1。pcbPool[i]。 runningQueuestate = 39。 //模擬執(zhí)行進程 //更新運行隊列 runningQueueneedtime = runningQueueneedtime runningQueueround。 } } else { if(readyQueue==NULL) { readyQueue = runningQueue。以后個步驟類似于2。 //鏈接指針} PCB。 //提示可以輸入新的進程int main(int argc, char const *argv[]){ createPro()。}void createPro(){ char name[10]。 strcpy(pcbPool[i].name, name)。 pcbPool[i].prin = 。 readyQueueTail = amp。 readyQueue = readyQueuenext。}void runPro(){ sleep(runningQueueneedtime)。 } else { finishedQueueTailnext = runningQueue。 int needtime, i=poolSize1。 strcpy(pcbPool[i].name, name)。 pcbPool[i].prin = 。 readyQueueTail =
點擊復制文檔內容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1