질문드립니다.
전체 프로그램 구조는
main(parent) - fork1(child) - create thread1 (thread pool)
- create thread2 (thread pool)
- create thread3 (thread pool)
nonblocking 이며,
parent에서는 client를 accept 합니다. 그리고 accept된 client socket을 child에게 넘깁니다.
child에서는 client에서 접속이 들어오면 client socket을 select() fd_set에 등록하며,
select() 합니다.
[code:1]
<child process code>
select();
if (ret_val == 0 || ret_val == -1) continue;