文件名称:thread.dat
介绍说明--下载内容均来自于网络,请自行研究使用
int main(int argc,char *argv[])
{
char ch
while(true)
{
printf("*************************************\n")
printf(" 1.Reader Priority\n")
printf(" 2.Writer Priority\n")
printf(" 3.Exit to Windows\n")
printf("*************************************\n")
printf("Enter your choice(1,2,3): ")
do{
ch=(char)_getch()
}while(ch!= 1 &&ch!= 2 &&ch!= 3 )
system("cls")
if(ch== 3 )
return 0
else if(ch== 1 )
ReaderPriority("thread.dat")
else
WriterPriority("thread.dat")
printf("\nPress Any Key to Coutinue:")
_getch()
system("cls")
}
return 0 -int main (int argc, char* argv []) (char ch while (true) (printf (************************************* ) printf ( 1.Reader Priority ) printf ( 2.Writer Priority ) printf ( 3.Exit to Windows ) printf (************************************* ) printf ( Enter your choice (1,2,3): ) do ( ch = (char) _getch ()) while (ch! = 1
{
char ch
while(true)
{
printf("*************************************\n")
printf(" 1.Reader Priority\n")
printf(" 2.Writer Priority\n")
printf(" 3.Exit to Windows\n")
printf("*************************************\n")
printf("Enter your choice(1,2,3): ")
do{
ch=(char)_getch()
}while(ch!= 1 &&ch!= 2 &&ch!= 3 )
system("cls")
if(ch== 3 )
return 0
else if(ch== 1 )
ReaderPriority("thread.dat")
else
WriterPriority("thread.dat")
printf("\nPress Any Key to Coutinue:")
_getch()
system("cls")
}
return 0 -int main (int argc, char* argv []) (char ch while (true) (printf (************************************* ) printf ( 1.Reader Priority ) printf ( 2.Writer Priority ) printf ( 3.Exit to Windows ) printf (************************************* ) printf ( Enter your choice (1,2,3): ) do ( ch = (char) _getch ()) while (ch! = 1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
thread.dat.txt