The thing is, there already are a whole lot of features to deal with this, many of which are not used as often as they should.
For example, the "minimum amount of data" option exists already for ages for socket (SO_LOWWAT or some such). There's POSIX realtime signals which can be queued and even start a new thread at a particular callback when the signal arrives.
All these things are aimed at the really high end though, 99% of programs don't need to worry about this much...
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds