Skip to contentSkip to conversation

what is the difference between poll and epoll ?

DISCUSSION horseriver 2 participants 5 messages Jan 7, 2013 – Jan 15, 2013

lore
Share & tools
lore

horseriver

author
#0 lore raw

hi:

I know epoll is event triger model ,but I do not know internel

surpport for it .

is there some illustration for epoll's frame or internel implementation?

thanks!

author
#2 lore raw
In reply to Peter Teoh
Quoted 16 lines · Peter Teoh

Read this (classic answer):

http://stackoverflow.com/questions/4093185/whats-the-difference-between-epoll-poll-threadpool

and from below:

http://stackoverflow.com/questions/4039832/select-vs-poll-vs-epoll

Which will bring you to:

http://daniel.haxx.se/docs/poll-vs-select.html
and
http://www.kegel.com/c10k.html

and the three are explained in depth here:

Quoted 7 lines

http://www.makelinux.net/ldd3/chp-6-sect-3

The difference are also explained here:

http://www.winddisk.com/2012/03/28/epoll%E4%B8%8Eselectpoll%E7%9A%84%E5%8C%BA%E5%88%AB/

and comes with a pictorial diagram as u have requested.

Thanks! Very Great!

Quoted 25 lines · horseriver
Quoted 17 lines

hi:

I know epoll is event triger model ,but I do not know internel

surpport for it .

is there some illustration for epoll's frame or internel
implementation?

thanks!

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 2 lines
Regards,
Peter Teoh
#1 lore raw
In reply to horseriver

Read this (classic answer):

http://stackoverflow.com/questions/4093185/whats-the-difference-between-epoll-poll-threadpool

and from below:

http://stackoverflow.com/questions/4039832/select-vs-poll-vs-epoll

Which will bring you to:

http://daniel.haxx.se/docs/poll-vs-select.html
and
http://www.kegel.com/c10k.html

and the three are explained in depth here:

http://www.makelinux.net/ldd3/chp-6-sect-3

The difference are also explained here:

http://www.winddisk.com/2012/03/28/epoll%E4%B8%8Eselectpoll%E7%9A%84%E5%8C%BA%E5%88%AB/

and comes with a pictorial diagram as u have requested.

Quoted 16 lines · horseriver

hi:

I know epoll is event triger model ,but I do not know internel

surpport for it .

is there some illustration for epoll's frame or internel
implementation?

thanks!

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 5 lines
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130111/b44dacbb/attachment.html 
author
#3 lore raw

hi:

what is the function of a file's poll function ?

thanks!

#4 lore raw

to wait on a particular event based on the file descriptor.

http://stackoverflow.com/questions/9167752/how-does-the-poll-function-work-in-c

http://linux.die.net/man/3/poll

look at the example if u don't understand the man page:

http://linux.byexamples.com/archives/133/write-a-function/

and this comes with explanation + example:

http://www.linux-mag.com/id/357/

Quoted 7 lines · horseriver

hi:

what is the function of a file's poll function ?

thanks!

Signature · 5 lines
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130115/7ec365c8/attachment.html