top | item 18601657

(no title)

angelsl | 7 years ago

Simplicity is nice sometimes.

discuss

order

AnIdiotOnTheNet|7 years ago

I have a hard time reconciling the Linux kernel with any meaningful definition of simplicity.

bitwize|7 years ago

Not when you want to do async I/O and must instead burn CPU cycles and battery life spinning in a select loop.

floatboth|7 years ago

What?

select(), which originally appeared way back in the day in 4.2BSD, is a way to not spin — it only returns when a descriptor is ready.

kazinator|7 years ago

Both async I/O and select/poll are ways of multiplexing concurrent I/O activities onto a single thread of control. Both provide a way to initiate I/O and wait for completion without busy waiting. Both require timed-out waits if the thread must give periodic attention to something other than I/O.