What are the differences between librt and libeio for asynchronous I / O and why should I choose one of them?

I really want to put more in the body to explain the question ... but the name really covers it all. As far as I can tell, it is librtmore “official” (is it a standard part libc?), But I also remember what Node.js uses libeio. What should I look at more time? How about portability? How different are their APIs?

(Look for this if someone with a ≥1.500 rep can add the "libeio" and "librt" tags to this question like I can't.)

+5
source share
1 answer

libeio wraps standard calls in threads and handles a wide range of common system calls.

librt has only a few calls - reading and writing, but not, for example, stat.

+3
source

All Articles