컴퓨터 공부 309

[5월 8일 1교시] 입출력 다중화 1

다수의 blocking file descriptor를 번갈아가며 처리 불가. 해결책  - 모든 디스크립터를 nonblocking으로 설정한 뒤 전부 검사(polling)  - 비동기 입출력을 선택적으로 결합  - 입출력 다중화 함수를 사용 - select, poll함수 select함수 #include<sys/types.h> #include<sys/time.h> #include<unistd.h> int select(__in int maxfdp1,__inou..