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

正文內(nèi)容

操作系統(tǒng)課程設(shè)計-在線瀏覽

2024-08-17 14:13本頁面
  

【正文】 semaphorel 2.\n)。d39。d1: printf(process1 is execting cretical section 2.\n)。e39。e1: printf(s2=%d\n,++s2)。 if(v(1,39。)) break。 } if(i3) return。 }process2(){ if(addr==39。) goto a2。b39。 if(addr==39。) goto c2。d39。 if(addr==39。) goto e2。f39。 for(i=1。++i) { printf(process2 call P on semaphore2\n)。a39。 /*process2 is blocked*/a2: printf(process2 is executing on the cretical setion2\n)。b39。b2: printf(s2=%d\n,++s2)。 if(v(1,39。)) break。 if(p(0,39。)) break。 if(timeint(39。)) break。 printf(process2 call V on semaphorel and quit cretical setion2\n)。f39。 /*wkup up a block process*/f2: printf(process2 cycle count=%d\n,i)。 eexit(1)。a39。if(addr==39。) goto b3。c39。for(i=1。++i){ printf(process3 call P on semaphore2\n)。a39。 /*process3 is blocked*/a3: printf(process3 is executing on its cretical section.\n)。b39。b3: printf(s2=%d\n,++s2)。 if(v(1,39。)) break。 } if(i6) return。}eexit(n)int n。c39。 exe=NIL。 int k。 printf(* * * * process management * * * *\n\n)。 printf(s1=%d, s2=%d\n,s1,s2)。 for(。 printf(\n%dth Scheduler Press ENTER to continue\n,j)。m)。 if((k=scheduler())!=NIL) { switch(k) { case 0: process1()。 case 1: process2()。 case 2: process3()。 default: printf(process identifer error\n)。 } } else break。 printf(\n* * * * END * * * *\n)。 /*file physical address*/ int flength。 /*file mode:0Read Only。2Read and Write(default)。 /*file name*/ } OSFILE。 /*ufd name*/ OSFILE ufdfile[MAXCHILD]。typedef struct /*the structure of OSUFD39。 /*ufd name*/ char ufdpword[8]。typedef struct /*file open mode*/ {int ifopen。 /*0read only,1write only,2read and write,3initial*/ }OSUFD_OPENMODE。 /*ufd and ufd own files*/OSUFD_LOGIN ufd_lp。 /*the count of mfd39。 /*the count of ufd39。 /*whether login successfully*/char username[MAXNAME]。s name22*/char dirname[MAXNAME]。 /*record file physical address num*/OSUFD_OPENMODE ifopen[MAXCHILD][MAXCHILD]。 /*whether getchar()*/FILE *fp_mfd,*fp_ufd,*fp_file_p,*fp_file。 char choice[50]。 /*whether choice end*/ char *rtrim(char *str)。 /*remove the heading blanks.*/ void LoginF()。 /*Dir FileSystem*/ void CdF()。 /*Create File*/ void DeleteF()。 /*Modify FileMode*/ void OpenF()。 /*Close File*/ void ReadF()。 /*Write File*/ void QuitF()。 if((fp_mfd=fopen(c:\\osfile\\mfd,rb))==NULL) {fp_mfd=fopen(c:\\osfile\\mfd,wb)。 } for(i=0。i++) fpaddrno[i]=0。 clrscr()。 /*user login*/ clrscr()。 if (choiceend==1) {printf(\n\nC:\\%s,strupr(dirname))。 gets(choice)。 if (strcmp(choice,dir)==0) choice1=1。 else if(strcmp(choice,delete)==0) choice1=3。 else if(strcmp(choice,open)==0) choice1=5。 else if(strcmp(choice,read)==0) choice1=7。 else if(strcmp(choice,exit)==0) choice1=9。 else if(strcmp(choice,cd)==0) choice1=11。 else choice1=12。choiceend=1。 case 2:CreateF()。if(!wgetchar) getchar()。 case 3:DeleteF()。if(!wgetchar)getchar()。 case 4:ModifyFM()。if(!wgetchar) getchar()。 case 5:choiceend=1。if (!wgetchar) getchar()。 case 6:choiceend=1。if (!wgetchar) getchar()。 case 7:choiceend=1。if (!wgetchar) getchar()。 case 8:choiceend=1。if (!wgetchar) getchar()。 case 9:printf(\nYou have exited this system.)。exit(0)。 case 10:choiceend=1。break。choiceend=1。 case 20:help()。break。 } }}else printf(\nAccess denied.)。printf(\nCd Attrib Creat Modify Read Open Cls Delete Exit Close\n)。 while(n=0) {if(*(str+n)!=39。) {*(str+n+1)=39。 break。 } if (n0) str[0]=39。 return str。 strrev(str)。 strrev(str)。}void LoginF() /*LOGIN FileSystem*/{char loginame[MAXNAME],loginpw[9],logincpw[9],str[50]。 char a[25]。 /*login user not exist*/ char *rtrim(char *str)。 /*remove the heading blanks.*/ void InputPW(char *password)。*39。 /*Set physical address num*/ while(1) {findout=0。 gets(loginame)。 fp_mfd=fopen(c:\\osfile\\,rb)。fread(amp。i++) if (strcmp(strupr(),strupr(loginame))==0) {findout=1。 } fclose(fp_mfd)。 InputPW(loginpw)。*39。 strcpy(dirname,username)。 for(j=0。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。 strcat(str,)。 strcpy(ufd[j]ufdname,strupr())。 fcount[j]=0。fread(amp。i++,fcount[j]++) {ifopen[j][i].ifopen=0。} fclose(fp_ufd)。 ucount=j。 printf(\n\nLogin successful! Wele to this FileSystem\n\n)。 return。 flag=1。 gets(a)。 if (strcmp(strupr(a),Y)==0) {loginsuc=0。} else if(strcmp(strupr(a),N)==0){loginsuc=0。return。 InputPW(loginpw)。*39。 /*input new password,use 39。 replace*/ InputPW(logincpw)。 strcpy(,loginpw)。 fwrite(amp。 fclose(fp_mfd)。 strcpy(dirname,loginame)。 strcat(str,username)。 fclose(fp_ufd)。 for(j=0。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。 strcat(str,)。 strcpy(ufd[j]ufdname,strupr())。 for(i=0。ufd[j]ufdfile[i],sizeof(OSFILE),1,fp_ufd)!=0。 ifopen[j][i].openmode=4。} fclose(fp_mfd)。 SetPANo(0)。 loginsuc=1。 } else {printf(\n\n)。 while(flag) {printf(Login Failed! Password Error. Try Again(Y/N):)。 ltrim(rtrim(a))。flag=0。flag=0。} } } } } }void SetPANo(int RorW) /*Set physical address num,0read,1write*/{int i,j。 fclose(fp_file_p)。 for(i=0。j,sizeof(int),1,fp_file_p)!=0。 /*for(i=1。i++) if ((i%13)==0) fpaddrno[i]=1。 /*for(i=1。i++) if((i%13)==0) fpaddrno[i]=0。iMAX。i,sizeof(int),1,fp_file_p)。}void InputPW(char *password) /*input password,use 39。 replace*/{int j。j=7。 if ((int)(password[j])!=13) {if((int)(password[j])!=8) putchar(39。)。j。\b39。putchar(39。)。\b39。 } else j。\039。 } } password[j]=39。}void DirF() /*Dir FileSystem*/{int i,j,count=0。 int ExistD(char *dirname)。 if (strcmp(strupr(ltrim(rtrim(dirname))),)!=0) {printf(\n\nC:\\%sdi
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1