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

正文內(nèi)容

時間片輪轉課程設計-預覽頁

2025-08-29 08:07 上一頁面

下一頁面
 

【正文】 教四、課程設計考核及評分標準課程設計考核將綜合考慮學生的系統(tǒng)設計方案、運行結果、課程設計報告書的質(zhì)量、態(tài)度、考勤、答辯情況等各因素。也就是說能運行的進程數(shù)遠遠大于處理機個數(shù)。進程個數(shù)由用戶輸入。為簡單起見,進程狀態(tài)設為三種:就緒,運行和完成。用這三個操作來模擬進程的一次運行;進程運行一次后,以后的調(diào)度則將當前指針依次下移一個位置,指向下一個進程,即調(diào)整當前運行指針,以指示應運行進程。運行進程已占用CPU時間達到所需運行時間時間片到,運行進程已占用CUP時間+1就緒隊列首進程投入運行 結束(實驗步驟、記錄、數(shù)據(jù)、分析)測試用例1:屏幕顯示:Please input the process name, arrive time and run time輸入:1 2 1enter2 3 1enter3 2 2enter4 1 2enter5 1 1enter測試數(shù)據(jù)2:1 1 2enter2 3 2enter3 1 2enter4 3 1enter5 1 1enter測試數(shù)據(jù)3:1 1 1enter2 2 2enter3 2 1enter4 1 2enter5 1 1enter結論(結果)(截圖):(截圖):(截圖):源程序代碼:include include struct stud{ int name。 char *state。 struct stud *head, *rear,*p,*q,*t。a)。i++) { p=(struct stud*)malloc(sizeof(struct stud))。prun)。 pnext=NULL。 while(qamp。} if(q==head) /*指向頭進程的下一個進程*/ {pnext=head。 rear=p。 }void output(struct stud *head){ struct stud *p,*t,*r。slice)。 /*剩余時間減去時間片*/pstate=running。 while(t!=NULL) { printf(%d\t%d\t%d\t%d\t%s\n,tname,tarrive,trun,trest,tstate)。 p=head。} } else {r=p。 head=create()。q) {t=q。qarriveparrive) {t=q。 pstate=running。 :通過這次試驗,我對處理機的調(diào)度算法基于時間片輪轉調(diào)度算法思想有了更深的理解。在基本輪轉法中,時間片大小的設置是關
點擊復制文檔內(nèi)容
數(shù)學相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1