How to use epoll and poll
Hi, I am using SuSE linux 10.0. To impove performace of network I/O we would like to use poll or epoll. Is it neccesary that /dev/poll and /dev/epoll is required. If so how do we create that devices? Thanks in advance -- Chaitanya Chalasani ------------------- "The ultimate truths of nature are so subtle that they can be revealed only under immense silence"
On Tue, 2006-05-16 at 12:43 +0530, Chaitanya Chalasani wrote:
Hi,
I am using SuSE linux 10.0. To impove performace of network I/O we would like to use poll or epoll. Is it neccesary that /dev/poll and /dev/epoll is required. If so how do we create that devices?
The poll() call has nothing to do with /dev/poll. Where have you seen /dev/poll? In addition to poll(), be sure to look at select(). And SIGIO if you would like the activity to be asynchronous. Meaning that your program can do other things and be interrupted when a monitored port has activity.
Thanks in advance
-- Chaitanya Chalasani ------------------- "The ultimate truths of nature are so subtle that they can be revealed only under immense silence"
-- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23
On Tuesday 16 May 2006 14:16, Roger Oberholtzer wrote:
On Tue, 2006-05-16 at 12:43 +0530, Chaitanya Chalasani wrote:
Hi,
I am using SuSE linux 10.0. To impove performace of network I/O we would like to use poll or epoll. Is it neccesary that /dev/poll and /dev/epoll is required. If so how do we create that devices?
The poll() call has nothing to do with /dev/poll. Where have you seen /dev/poll? In addition to poll(), be sure to look at select(). And SIGIO if you would like the activity to be asynchronous. Meaning that your program can do other things and be interrupted when a monitored port has activity.
Thanks in advance
-- Chaitanya Chalasani ------------------- "The ultimate truths of nature are so subtle that they can be revealed only under immense silence"
I was trying to configure ACE to use epoll for faster I/O, while ./configure it shows that it can find epoll_create but just wondering what is the library file of epoll. -- Chaitanya Chalasani ------------------- "The ultimate truths of nature are so subtle that they can be revealed only under immense silence"
On Tue, 2006-05-16 at 18:00 +0530, Chaitanya Chalasani wrote:
I was trying to configure ACE to use epoll for faster I/O, while ./configure it shows that it can find epoll_create but just wondering what is the library file of epoll.
libc. So you get it without doing anything. Just be sure to include:
for epoll:
#include
participants (2)
-
Chaitanya Chalasani
-
Roger Oberholtzer