select 와 poll에 대해서.
글쓴이: moonzoo / 작성시간: 화, 2003/10/07 - 9:05오전
man select 하였더니..다음과 같은 부분이 나옵니다.
select() supports the following devices and file types:
+ pipes
+ fifo special files (named pipes)
+ all serial devices
+ All ITEs (internal terminal emulators) and HP-HIL input
devices
+ hpib(7) special files
+ lan(7) special files
+ pty(7) special files
+ sockets
위와 같은 사실이 poll 에도 그대로 엄격히 적용되는지 알고 싶습니다.
예를 들어 regular file 에는 직접 poll을 적용할 수 없는지 궁금합니다.
Forums:


fd를 따는 녀석들은 다 select나 poll이 가능합니다.당연히
fd를 따는 녀석들은 다 select나 poll이 가능합니다.
당연히 일반적인 파일도 가능하겠지요..
울랄라~ 호기심 천국~!!
http://www.ezdoum.com
regular file의 readable event를 select나 po
regular file의 readable event를 select나 poll로 감지하려 하면 항상 readable 한 상태로 리턴 됩니다.
regular file에 대한 select/poll 에 대한 논의는 다음 스레드를 참고하세요.
http://bbs.kldp.org/viewtopic.php?t=2409&highlight=regular
우리 모두 리얼리스트가 되자. 그러나 가슴에 이룰 수 없는 꿈을 가지자
..
답변 감사드립니다..
즉 regular file이 사용은 가능하지만
실제적으로 readable한 상태로만 리턴이 되기 때문에..
select나 poll을 사용해서는 원하는 결과를 얻기 힘든거군요..
잘 배웠습니다.
댓글 달기