별로 자주 써 보지를 않아서 헷갈리네요 -_-
Java의 NIO를 보다보니 역시 IO multiplexing 개념인 거 같은데 Non-blocking IO만 된다는 거 같더군요(이것도 제대로 이해한건지..).
select나 poll이나 등등(epoll, kqueue도..)도 대상이 되는 fd가 Non-blocking IO만 되는 건가요? 제가 알기론 아닌 거 같았는데...-_-;
select의 timeout에 NULL을 주면 block 됩니다.
select에 주어질 File Descriptor Set의 원소인 File Descriptor가 Non-Blocking으로 설정이 되어 있어야만 한다는 뜻이냐고 물어보신 거라면 그렇지 않습니다. Blocking 상태의 FD도 select로 검사할 수 있습니다.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
timeout
select의 timeout에 NULL을 주면 block 됩니다.
select에 주어질 File
select에 주어질 File Descriptor Set의 원소인 File Descriptor가 Non-Blocking으로 설정이 되어 있어야만 한다는
뜻이냐고 물어보신 거라면 그렇지 않습니다. Blocking 상태의 FD도 select로 검사할 수 있습니다.
댓글 달기