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

正文內(nèi)容

操作系統(tǒng)源代碼-預(yù)覽頁

2025-08-29 06:41 上一頁面

下一頁面
 

【正文】 *)。}void inputJob(void) /*從鍵盤輸入作業(yè)到D盤的JOB文件*/{ int /*id,size, */status = 0,jobnum = 0。fp,d:\\,w)。id,amp。amp。 } else break。 errorMessage()。 FILE *fp。 if((*jobs = malloc(sizeof(struct jobList))) == NULL) { printf(\nNot enough to allocate for the job .)。 (*jobs)next = NULL。 fclose(fp)。 rear = rear next。 } fclose(fp)。 openFile(amp。p。}int showFreeList(struct freeList *empty) /*空閑分區(qū)隊(duì)列顯示*/{ FILE *fp。fp,d:\\,a)。 printf(\nnumber\tsize\tstartAddress)。 printf(\n%d\t%d\t%d,count,p size,p startAddress)。 printf(\nThe memory was used out !)。 while(p amp。t find the job which id is : %d .,id)。 }}void updateJobStatus(struct jobList **jobs,int id,int status){ struct jobList *p = (*jobs)next。 if(p == NULL) { printf(\nCan39。}int showUsedList(struct jobList *jobs,struct usedList *used) /*作業(yè)占用鏈表顯示*/{ FILE *fp。fp,d:\\,a)。 printf(\nnumber\tjobID\tsize\tstartAddress)。size,amp。 } fclose(fp)。 fclose(fp)。 if(p == NULL) { printf(\nNo job in the list ! Try again next time.)。 p = pnext。int address = memoryStartAddress。 } for(p = (*used) next。size,amp。/*修改空閑分區(qū)的首節(jié)點(diǎn)始址、大小*/ (*empty) next size = memorySize (address memoryStartAddress)。 for(p = (*empty) next。q = q next) { switch(bySize) { case 0 : switch(inc) { case 0:if(qsize tempsize) temp = q。 } break。break。 pstartAddress = tempstartAddress。 } }}int allocate(struct freeList **empty,int size) /*為作業(yè)分配存儲(chǔ)空間、狀態(tài)必須為0*/{ struct freeList *p,*prep。amp。 p size = size。 prep next = p next。}void insertUsedNode(struct usedList **used,int id,int startAddress) /*插入釋放的空間到used鏈表中(作業(yè)號(hào)為id,startAddress由函數(shù)13返回)*/{ struct usedList *q,*r,*prer。 q jobID = id。amp。 prer next = q。 while(p amp。 } if(p == NULL) { printf(\nThe job which id is : %d is not in the memory !,id)。 free(p)。 for(p = *empty。r,startAddress,size)。 } if(p startAddress + p size == startAddress) /* 與尾部上鄰 */ { p size += size。 /* 合并首節(jié)點(diǎn) */ q size += size。 (*empty) next = r。 q = q next。 pnext =qnext。\ q startAddress != startAddress + size) /*上鄰,增加節(jié)點(diǎn)的大小*/ { p size += size。 /* 修改節(jié)點(diǎn)起始地址 */ q size += size。 p next = r。 struct freeList *empty。 } used next = NULL。 while(1) { char ch,step。 printf(\nPlease select a digit to continue.\n)。139。 used next = NULL。(emptynext),memoryStartAddress,memorySize)。 printf(\n\n\nDo you want to use your job file directly ?\ \nDefault is \39。 fprintf(fp,\n%c,ch)。amp。) { inputJob()。Y39。q。used,qid,startAddress)。239。fp,d:\\,a)。 . Y/N : )。 ch = getche()。Y39。y39。139。 case 39。break。empty,1,0)。: order(amp。empty,qsize)。jobs,qid,1)。fp,d:\\,a)。id)。status)。s status is correct !)。 fprintf(fp,\nThe job was in the memory !)。 fprintf(fp,\nThe job was finished !)。 fprintf(fp,\nUnexpected job status .Please check you job file.)。139。 case 39。break。empty,1,0)。: order(amp。empty,size)。jobs,id,1)。 case 39。 } do{ int i。 fclose(fp)。 fprintf(fp,\nPlease input the id from above .\nInput 1 to end the finish job task .)。 fprintf(fp,%d\n,id)。size,amp。startAddress)。jobs,id,2)。 } else { printf(\nUnexpected job status .\ Please check you job file.)。 case 39。 fprintf(fp,\n\n\tShow current free list. ...)。 case 39。 fprintf(fp,\n\n\tShow current memory used by jobs. ...)。 case 39。 fprintf(fp,\n\n\tMove fragment together. ...)。used)。: openFile(amp。 exit(
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1