From: Mike <nee...@gm...> - 2006-09-25 22:27:01
|
On 9/25/06, Zoran Vasiljevic <zv...@ar...> wrote: > Unix is not Unix as I see... > > Please note this (interesting) document: > > http://developers.sun.com/solaris/articles/event_completion.html > > Mostly interesting, as there is now a very powerful and scalable > notification interface on both Solaris and Mac OSX (aka BSD) > Unixes. Windows has it as well, with Linux hanging pretty much > behind (unfortunately). > > I wonder if we should start making ifdefs or wrappers to be able > to benefit from the corresponding event notification interface > available on the current platform. > > Mainly this would affect poll() usage in the driver thread > but can also be used all arround the code where we have to > wait for multiple "things" to happen. > > Does anybody have something to comment about that? > > Ah yes.., why "brawe new world"? Because Unix OS is diverging > and OS vendors are adding new (incompatible) functionality > on a monthly basis. I wonder how this will all look in 10 > years in future... I highly recommend a download and read-through of lighttpd sources. They have a very simple abstraction that handles the available interfaces (kqueue, poll, and friends). Since it's also a web server, I imagine the API can be adopted (that, and the fact that the code is very well written and clean make it an ideal candidate to examine, in my opinion). |