What’s the difference between event-driven and asynchronous? Between epoll and AIO?

Events is one of the paradigms to achieve asynchronous execution. But not all asynchronous systems use events. That is about semantic meaning of these two – one is super-entity of another. epoll and aio use different metaphors: epoll is a blocking operation (epoll_wait()) – you block the thread until some event happens and then you … Read more

Difference between POSIX AIO and libaio on Linux?

On linux, the two AIO implementations are fundamentally different. The POSIX AIO is a user-level implementation that performs normal blocking I/O in multiple threads, hence giving the illusion that the I/Os are asynchronous. The main reason to do this is that: it works with any filesystem it works (essentially) on any operating system (keep in … Read more

What is the status of POSIX asynchronous I/O (AIO)?

Doing socket I/O efficiently has been solved with kqueue, epoll, IO completion ports and the likes. Doing asynchronous file I/O is sort of a late comer (apart from windows’ overlapped I/O and solaris early support for posix AIO). If you’re looking for doing socket I/O, you’re probably better off using one of the above mechanisms. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)