看板 FCUProblems 關於我們 聯絡資訊
※ [本文轉錄自 FCU_Talk 看板] 作者: sklogn (Jer) 看板: FCU_Talk 標題: [考題][資訊系][網路程式設計][林國貴96下期末考] 時間: Tue Jun 17 15:47:23 2008 1.說明下列System CAlls及Macros的功能及其參數、返回值的功用與內容?(40分) (a).select(nfds,&rfds,&wfds,(fd_set *) 0,(struct timeval *) 0) (b).FD_SET(msock,&afds); FD_ISSET(msock,&rfds); FD_CLR(fd,&afds); (c).(void) signal(SIGCHLD,reaper) (d).wait3(&status,WNOHANG,(struct rusage *) 0) (e).pid=fork(); execve(path,argv,envp); (f).ioctl(fd,FINOBIO,(char *)&one); (g).pthread_create(&th,&ta,(void * (*) (void *)prstats,0)); (h).pthread_attr_setdetachstate(&ta,PTHREAD_CREATE_DETACHED); 2.說明下列資料型態以及結構的功用及內容?(15分) (a).pthread_mutex_t stmutex; (b).fd_set rfds,afds; (c).struct service{char * sv_name; char sv_useTCP; int sv_socket; void (* sv_func) (int);} (d).struct service * fd2sv[NOFILE]; 3.簡答題:(40分) (a).a zombie state (b).delayed slave allocation (c).slave preallocation (d).the super sever,Inetd (e).static and dynamic sever configuration (f).encapsulation and tunneling (g).application gateway (h).RPC(Remote Procedure Call) 4.詳細說明實做TCP/IP sever程式有哪些不同的方法及技術, 並且比較這些不同的方式及架構的優缺點?(20分) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.170.125.48
JohnRoyer:推 06/17 16:10
FCUsquanto:倒 06/17 16:13
abibas:X 06/17 16:22
JohnRoyer:你 06/17 16:39
sklogn: 已 06/17 16:43
FCUsquanto: 經 06/17 16:44
sklogn: 死 06/17 16:45
pppsa: 當 06/17 16:46
FCUsquanto: 了 06/17 16:46
ccloudd: 斷 06/17 16:47
loveflames:我覺得Unix Network Programming寫得比學校那本好 06/17 16:49
anxor:阿貴網程教得怎麼樣 XD 06/17 16:56
loveflames:好像是期末demo? 06/17 16:58
Simonfenix:看起來就像林國貴會出的題目... 06/17 18:00
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.132.214.27