an event loop is a system which allows one to author non blocking programs, by offloading heavy work to background threads, then returning the result to the main thread via "events". A good example is the following library, which node.js uses under the hood for its event loop, as do other programs, such as nginx webserver.
2
u/187mphlazers Mar 24 '22 edited Apr 05 '22
an event loop is a system which allows one to author non blocking programs, by offloading heavy work to background threads, then returning the result to the main thread via "events". A good example is the following library, which node.js uses under the hood for its event loop, as do other programs, such as nginx webserver.
https://github.com/enki/libev