“When the callback for queue empty happens, the code to operate on the queue is switched to
use the lock-free synchronization code. When the quaject’s queue-not-empty callback is
invoked, the quajects switch back to the synchronization-free code.”
Whoa… that ran shivers down my spine. What an outrageously cool idea.
This is the latest in my Kernel Hacker’s Bookshelf series (scroll down to the K’s in that page). There are three really great things about writing this series: (1) In order to write about the papers, I have to reread them until I actually understand them fully, (2) I get to infect other programmers with my favorite cool ideas, (3) Everyone associates me with other people’s brilliant ideas and so they think I’m much smarter than I am.