Comment

Comment by anonymousiam

Maybe I am out of date. (I probably am because I haven't written any code that uses select() for two decades.)

Can somebody please identify the POSIX method by which one can wait on a set of descriptors, that does not involve spinning in a polling loop and gobbling up a CPU thread? The last time I had a need for such a thing, select() was the preferred way to do that.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton